diff sources/functions.sh @ 798:2c9f22daa8fe

Allow target settings to specify BUILD_STATIC.
author Rob Landley <rob@landley.net>
date Sat, 08 Aug 2009 21:27:08 -0500
parents 5f793a1ca658
children 8129df56091b
line wrap: on
line diff
--- a/sources/functions.sh	Sat Aug 08 17:11:35 2009 -0500
+++ b/sources/functions.sh	Sat Aug 08 21:27:08 2009 -0500
@@ -54,6 +54,10 @@
   [ "$FROM_ARCH" != "$ARCH" ] &&
     PATH="${BUILD}/cross-compiler-${FROM_ARCH}/bin:$PATH"
 
+  # Check this here because it could be set in "settings"
+
+  [ ! -z "$BUILD_STATIC" ] && STATIC_FLAGS="--static"
+
   return 0
 }