Revision: 4497
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4497&view=rev
Author:   dcommander
Date:     2011-06-14 22:23:39 +0000 (Tue, 14 Jun 2011)

Log Message:
-----------
Using build-xorg without -static is not useful, because it causes Xvnc to 
depend on the dynamic X11 libraries generated by build-xorg in the build 
directory.  Thus, remove -static and make that behavior the default.

Modified Paths:
--------------
    branches/1_1/BUILDING.txt
    branches/1_1/unix/build-xorg

Modified: branches/1_1/BUILDING.txt
===================================================================
--- branches/1_1/BUILDING.txt   2011-06-14 13:36:57 UTC (rev 4496)
+++ branches/1_1/BUILDING.txt   2011-06-14 22:23:39 UTC (rev 4497)
@@ -106,13 +106,12 @@
 
   cd {build_directory}
   sh {source_directory}/unix/build-xorg init -version 7.4
-  sh {source_directory}/unix/build-xorg build -version 7.4 [-static] 
[additional configure flags]
+  sh {source_directory}/unix/build-xorg build -version 7.4 [additional 
configure flags]
 
-Passing an argument of "-static" to the build command line will generate a
-version of Xvnc that has no external dependencies on the X11 shared libraries
-or any other distribution-specific shared libraries.  This version of Xvnc
-should be transportable across multiple O/S distributions.  The legacy-friendly
-build should work on Red Hat Enterprise 4, its contemporaries, and later
+build-xorg generates a version of Xvnc that has no external dependencies on the
+X11 shared libraries or any other distribution-specific shared libraries.  This
+version of Xvnc should be transportable across multiple O/S distributions.
+build-xorg should work on Red Hat Enterprise 4, its contemporaries, and later
 systems.  It probably will not work on older systems.  It has not been tested
 on non-Linux systems (yet).
 

Modified: branches/1_1/unix/build-xorg
===================================================================
--- branches/1_1/unix/build-xorg        2011-06-14 13:36:57 UTC (rev 4496)
+++ branches/1_1/unix/build-xorg        2011-06-14 22:23:39 UTC (rev 4497)
@@ -8,7 +8,6 @@
 
 PREFIX=
 MAKE="make"
-STATIC=0
 XORG_VERSION=
 SRCDIR=`dirname $0`/..
 
@@ -119,10 +118,7 @@
 {
     # Build VNC
     echo "*** Building VNC ***"
-    if [ $STATIC = 1 ]; then
-        VNCCFGFLAGS=--with-included-zlib
-    fi
-    $SRCDIR/configure ${1+"$@"} --prefix=${PREFIX} ${VNCCFGFLAGS}
+    $SRCDIR/configure ${1+"$@"} --prefix=${PREFIX} --with-included-zlib
     $MAKE
 
     # Build Xorg
@@ -143,20 +139,15 @@
         if [ "${module}" = "pixman" ]; then
             extraoptions="${extraoptions} --disable-gtk"
         fi
-        if [ $STATIC = 1 ]; then
-            extraoptions="${extraoptions} --enable-static --disable-shared"
-            OLD_CFLAGS=${CFLAGS}
-            OLD_CXXFLAGS=${CXXFLAGS}
-            CFLAGS=${CFLAGS}' -fPIC'
-            CXXFLAGS=${CXXFLAGS}' -fPIC'
-            export CFLAGS CXXFLAGS
-        fi
-        ./configure ${1+"$@"} --prefix="${PREFIX}" ${extraoptions}
-        if [ $STATIC = 1 ]; then
-            CFLAGS=${OLD_CFLAGS}
-            CXXFLAGS=${OLD_CXXFLAGS}
-            export CFLAGS CXXFLAGS
-        fi
+        OLD_CFLAGS=${CFLAGS}
+        OLD_CXXFLAGS=${CXXFLAGS}
+        CFLAGS=${CFLAGS}' -fPIC'
+        CXXFLAGS=${CXXFLAGS}' -fPIC'
+        export CFLAGS CXXFLAGS
+        ./configure ${1+"$@"} --prefix="${PREFIX}" ${extraoptions} 
--enable-static --disable-shared
+        CFLAGS=${OLD_CFLAGS}
+        CXXFLAGS=${OLD_CXXFLAGS}
+        export CFLAGS CXXFLAGS
         echo ======================
         echo building ${module}
         echo ======================
@@ -181,17 +172,15 @@
     popd
 
     # build freetype
-    if [ $STATIC = 1 ]; then
-        echo "*** Building freetype ***"
-        pushd freetype-*
-        ./configure ${1+"$@"} --prefix=${PREFIX} --enable-static 
--disable-shared
-        if [ $? -ne 0 ]; then
-           echo "Failed to configure freetype."
-           exit
-        fi
-        $MAKE install
-        popd
+    echo "*** Building freetype ***"
+    pushd freetype-*
+    ./configure ${1+"$@"} --prefix=${PREFIX} --enable-static --disable-shared
+    if [ $? -ne 0 ]; then
+       echo "Failed to configure freetype."
+       exit
     fi
+    $MAKE install
+    popd
 
     popd
 
@@ -199,10 +188,7 @@
     echo "*** Building xserver ***"
     pushd xorg/xserver
     autoreconf -fiv
-    XORGCFGFLAGS="--disable-xinerama --disable-xvfb --disable-xnest 
--disable-xorg --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive 
--disable-config-dbus --disable-config-hal --disable-config-udev 
--with-sha1=libgcrypt ${XORGCFGFLAGS}"
-    if [ $STATIC = 1 ]; then
-        XORGCFGFLAGS="${XORGCFGFLAGS} SHA1_LIB=-lcrypto --disable-shared 
--enable-static"
-    fi
+    XORGCFGFLAGS="--disable-xinerama --disable-xvfb --disable-xnest 
--disable-xorg --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive 
--disable-config-dbus --disable-config-hal --disable-config-udev 
--with-sha1=libgcrypt SHA1_LIB=-lcrypto --disable-shared --enable-static 
${XORGCFGFLAGS}"
     ./configure ${1+"$@"} --prefix=${PREFIX} ${XORGCFGFLAGS}
     if [ $? -ne 0 ]; then
        echo "Failed to configure X server."
@@ -231,17 +217,12 @@
     echo "Usage: $0  init -version <7.4 | 7.5>"
     echo
     echo "       $0  build -version <7.4 | 7.5>"
-    echo "       [-static] [additional configure flags]"
+    echo "       [additional configure flags]"
     echo
     echo "       $0  rebuild [additional make options]"
     echo
     echo "       $0  update -version <7.4 | 7.5>"
     echo
-    echo "-static = build a stand-alone version of Xvnc which does not depend 
on"
-    echo "          the shared X11 libraries or any distribution-specific 
shared"
-    echo "          system libraries (requires GCC.)  Note that this does not 
enable"
-    echo "          static linking with GnuTLS.  See BUILDING.txt for 
instructions"
-    echo "          on how to do that."
     exit 1
 }
 
@@ -257,7 +238,6 @@
        build)      MODE=build               ;;
        rebuild)    MODE=rebuild             ;;
        update)     MODE=update              ;;
-       -static)    STATIC=1                 ;;
        -version)   XORG_VERSION=$2;  shift  ;;
        -srcdir)    SRCDIR=$2;        shift  ;;
        *)          break                    ;;
@@ -284,7 +264,7 @@
     PREFIX=`pwd`/xorg.build
 fi
 
-if [ $STATIC = 1 -a "$MODE" = "build" ]; then
+if [ "$MODE" = "build" ]; then
     if [ ! -d ./xorg.build/syslib ]; then
        mkdir -p ./xorg.build/syslib
     fi
@@ -372,11 +352,7 @@
 case "$MODE" in
     init)       init                 ;;
     build)
-       if [ $STATIC = 1 ]; then
-           build ${1+"$@"} CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" 
LDFLAGS="$LDFLAGS";
-       else
-           build ${1+"$@"};
-       fi
+       build ${1+"$@"} CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" 
LDFLAGS="$LDFLAGS";
        ;;
     rebuild)    rebuild ${1+"$@"}    ;;
     update)     update               ;;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to