[PATCH build 1/4] Bugfix: -L needs HOST_OS and HOST_CPU.

Trevor Woerner twoerner at gmail.com
Thu Sep 16 19:16:19 PDT 2010


From: Trevor Woerner <twoerner at gmail.com>

When invoked with the -L option, build.sh needs the HOST_OS and HOST_CPU
variables defined since they are necessary to determine which modules
are to be built.

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
 build.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh
index 20aee43..003b765 100755
--- a/build.sh
+++ b/build.sh
@@ -30,9 +30,6 @@ EOF
 }
 
 setup_buildenv() {
-    export HOST_OS=`uname -s`
-    export HOST_CPU=`uname -m`
-
     export LIBDIR=${LIBDIR:="lib"}
 
     # Must create local aclocal dir or aclocal fails
@@ -834,6 +831,9 @@ if [ -z "${PREFIX}" ] && [ -z "$LISTONLY" ]; then
     exit
 fi
 
+export HOST_OS=`uname -s`
+export HOST_CPU=`uname -m`
+
 if [ -z "$LISTONLY" ]; then
     setup_buildenv
     echo "Building to run $HOST_OS / $HOST_CPU ($HOST)"
-- 
1.7.3.rc2



More information about the xorg-devel mailing list