comparison 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
comparison
equal deleted inserted replaced
797:bb8333b7a553 798:2c9f22daa8fe
51 STAGE_DIR="$BUILD/${STAGE_NAME}-${ARCH}" 51 STAGE_DIR="$BUILD/${STAGE_NAME}-${ARCH}"
52 52
53 export PATH="${BUILD}/cross-compiler-$ARCH/bin:$PATH" 53 export PATH="${BUILD}/cross-compiler-$ARCH/bin:$PATH"
54 [ "$FROM_ARCH" != "$ARCH" ] && 54 [ "$FROM_ARCH" != "$ARCH" ] &&
55 PATH="${BUILD}/cross-compiler-${FROM_ARCH}/bin:$PATH" 55 PATH="${BUILD}/cross-compiler-${FROM_ARCH}/bin:$PATH"
56
57 # Check this here because it could be set in "settings"
58
59 [ ! -z "$BUILD_STATIC" ] && STATIC_FLAGS="--static"
56 60
57 return 0 61 return 0
58 } 62 }
59 63
60 function blank_tempdir() 64 function blank_tempdir()