aboutsummaryrefslogtreecommitdiff
path: root/scripts/genconfig.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-03-03 10:56:11 -0600
committerRob Landley <rob@landley.net>2012-03-03 10:56:11 -0600
commit344c267e9fe5c6a39efdbf0305bd873d5bef65f3 (patch)
tree94de0771123873b6f3fa8cb0e468f3b595555b1b /scripts/genconfig.sh
parentad065e2d1b96dd2f387296086ef808cd28bf3a47 (diff)
downloadtoybox-344c267e9fe5c6a39efdbf0305bd873d5bef65f3.tar.gz
Fix from Georgi Chorbadzhiyski to make cross compiling more robust.0.2.1
Diffstat (limited to 'scripts/genconfig.sh')
-rwxr-xr-xscripts/genconfig.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 4ecff254..449ee1ea 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -13,7 +13,7 @@ probeconfig()
# Probe for container support on target
echo -e "# container support\nconfig TOYBOX_CONTAINER\n\tbool" || return 1
- $CC -c -xc -o /dev/null - << EOF
+ ${CROSS_COMPILE}${CC} -c -xc -o /dev/null - 2>/dev/null << EOF
#include <sched.h>
int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET;
EOF