]> source.dussan.org Git - tigervnc.git/commitdiff
Prevent vncviewer, vncconfig, and x0vncserver from linking against static X11 libs...
authorDRC <dcommander@users.sourceforge.net>
Tue, 12 Jan 2010 04:38:32 +0000 (04:38 +0000)
committerDRC <dcommander@users.sourceforge.net>
Tue, 12 Jan 2010 04:38:32 +0000 (04:38 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3944 3789f03b-4d11-0410-bbf8-ca57d06f2519

release/build-compat-linux
release/build-compat-linux-m32

index 6a7bcc5c827d93d7bccb33f4fb7675d49ca819f2..7d5ac406c8c342f208a6afdfd3e70cd8b2feea55 100755 (executable)
@@ -11,31 +11,31 @@ fi
 
 SCRIPTDIR=`dirname $0`
 pushd $SCRIPTDIR/../unix
-if [ ! -d ./xorg.build/lib ]; then
-       mkdir -p ./xorg.build/lib
+if [ ! -d ./xorg.build/syslib ]; then
+       mkdir -p ./xorg.build/syslib
 fi
 CFLAGS='-O3 -static-libgcc'
 CXXFLAGS=$CFLAGS
-LDFLAGS=$CFLAGS' -L'`pwd`'/xorg.build/lib'
+LDFLAGS=$CFLAGS' -L'`pwd`'/xorg.build/syslib'
 export CFLAGS
 export CXXFLAGS
 export LDFLAGS
-if [ -f ./xorg.build/lib/libstdc++.a ]; then
-       rm -f ./xorg.build/lib/libstdc++.a
+if [ -f ./xorg.build/syslib/libstdc++.a ]; then
+       rm -f ./xorg.build/syslib/libstdc++.a
 fi
-ln -fs `gcc $CFLAGS -print-file-name=libstdc++.a` ./xorg.build/lib
-if [ -f ./xorg.build/lib/libcrypto.a ]; then
-       rm -f ./xorg.build/lib/libcrypto.a
+ln -fs `gcc $CFLAGS -print-file-name=libstdc++.a` ./xorg.build/syslib
+if [ -f ./xorg.build/syslib/libcrypto.a ]; then
+       rm -f ./xorg.build/syslib/libcrypto.a
 fi
-if [ -f ./xorg.build/lib/libz.a ]; then
-       rm -f ./xorg.build/lib/libz.a
+if [ -f ./xorg.build/syslib/libz.a ]; then
+       rm -f ./xorg.build/syslib/libz.a
 fi
 if [ "`uname -m`" = "x86_64" ]; then
-       ln -fs /usr/lib64/libcrypto.a ./xorg.build/lib
-       ln -fs /usr/lib64/libz.a ./xorg.build/lib
+       ln -fs /usr/lib64/libcrypto.a ./xorg.build/syslib
+       ln -fs /usr/lib64/libz.a ./xorg.build/syslib
 else
-       ln -fs /usr/lib/libcrypto.a ./xorg.build/lib
-       ln -fs /usr/lib/libz.a ./xorg.build/lib 
+       ln -fs /usr/lib/libcrypto.a ./xorg.build/syslib
+       ln -fs /usr/lib/libz.a ./xorg.build/syslib      
 fi
 . build-xorg-7.4 $1 -static
 popd
index f691c29cf1aa3c688682ed4d31a8578485a75b80..db4973a122647231cd13748d50d2b1e85ef1efbd 100755 (executable)
@@ -13,26 +13,26 @@ fi
 
 SCRIPTDIR=`dirname $0`
 pushd $SCRIPTDIR/../unix
-if [ ! -d ./xorg.build/lib ]; then
-       mkdir -p ./xorg.build/lib
+if [ ! -d ./xorg.build/syslib ]; then
+       mkdir -p ./xorg.build/syslib
 fi
 CFLAGS='-m32 -O3 -static-libgcc'
 CXXFLAGS=$CFLAGS
-LDFLAGS=$CFLAGS' -L'`pwd`'/xorg.build/lib'
+LDFLAGS=$CFLAGS' -L'`pwd`'/xorg.build/syslib'
 export CFLAGS
 export CXXFLAGS
 export LDFLAGS
-if [ -f ./xorg.build/lib/libstdc++.a ]; then
-       rm -f ./xorg.build/lib/libstdc++.a
+if [ -f ./xorg.build/syslib/libstdc++.a ]; then
+       rm -f ./xorg.build/syslib/libstdc++.a
 fi
-ln -fs `gcc $CFLAGS -print-file-name=libstdc++.a` ./xorg.build/lib
-if [ -f ./xorg.build/lib/libcrypto.a ]; then
-       rm -f ./xorg.build/lib/libcrypto.a
+ln -fs `gcc $CFLAGS -print-file-name=libstdc++.a` ./xorg.build/syslib
+if [ -f ./xorg.build/syslib/libcrypto.a ]; then
+       rm -f ./xorg.build/syslib/libcrypto.a
 fi
-if [ -f ./xorg.build/lib/libz.a ]; then
-       rm -f ./xorg.build/lib/libz.a
+if [ -f ./xorg.build/syslib/libz.a ]; then
+       rm -f ./xorg.build/syslib/libz.a
 fi
-ln -fs /usr/lib/libcrypto.a ./xorg.build/lib
-ln -fs /usr/lib/libz.a ./xorg.build/lib
+ln -fs /usr/lib/libcrypto.a ./xorg.build/syslib
+ln -fs /usr/lib/libz.a ./xorg.build/syslib
 . build-xorg-7.4 $1 -static --host i686-pc-linux-gnu
 popd