diff sources/functions.sh @ 998:bbcafba8a594

Another bug Wolfgang Denk reported: make BUILD_STATIC=none actually work.
author Rob Landley <rob@landley.net>
date Sun, 14 Mar 2010 01:18:27 -0600
parents 00704bb2c556
children 98dbfffd3b0a
line wrap: on
line diff
--- a/sources/functions.sh	Fri Mar 12 14:29:25 2010 -0600
+++ b/sources/functions.sh	Sun Mar 14 01:18:27 2010 -0600
@@ -72,8 +72,8 @@
 
   # Check this here because it could be set in "settings"
 
-  [ ! -z "$BUILD_STATIC" ] && STATIC_FLAGS="--static"
   [ "$BUILD_STATIC" != none ] && STATIC_DEFAULT_FLAGS="--static"
+  [ ! -z "$BUILD_STATIC" ] && STATIC_FLAGS="$STATIC_DEFAULT_FLAGS"
 
   DO_CROSS="CROSS_COMPILE=${ARCH}-"