diff options
author | Lauri Leukkunen <lle@rahina.org> | 2007-12-14 11:12:43 +0200 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2007-12-14 11:12:43 +0200 |
commit | 3abb5ec4d99051f16fef341cd0f4c2cf4110c1c8 (patch) | |
tree | 976e625d5e474a898150f333bd36d1aa82ebc4fc | |
parent | ee1dce0e4312f5ebe6efee93f85e72ae637573e5 (diff) |
Fix shell scripting stupidity
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
-rwxr-xr-x | utils/sb2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ function sboxify_environment() # test if the cross compiler needs to be silenced about /usr/include # usage echo "" | $SBOX_CROSS_GCC_DIR/${SBOX_CROSS_GCC_SUBST_PREFIX}gcc -E - -Wno-poison-system-directories > /dev/null 2>&1 - if [ $? ] ; then + if [ $? = 0 ] ; then export SBOX_EXTRA_CROSS_COMPILER_ARGS="-I/usr/include -L$SBOX_TARGET_ROOT/usr/lib -L$SBOX_TARGET_ROOT/lib -Wno-poison-system-directories" else export SBOX_EXTRA_CROSS_COMPILER_ARGS="-I/usr/include -L$SBOX_TARGET_ROOT/usr/lib -L$SBOX_TARGET_ROOT/lib" |