aboutsummaryrefslogtreecommitdiff
path: root/scripts/genconfig.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-13 08:44:32 -0600
committerRob Landley <rob@landley.net>2012-02-13 08:44:32 -0600
commit2bd3a5df73723ef3aa274aab2d18de0ad9b31e25 (patch)
treeb8b7b2a8d9f19b581141a90d31fee94dacc93123 /scripts/genconfig.sh
parent560feabc6aa7031d8e53e743970801ceed439403 (diff)
downloadtoybox-2bd3a5df73723ef3aa274aab2d18de0ad9b31e25.tar.gz
The unshare test needs $CC defined, source configure to get it.
Diffstat (limited to 'scripts/genconfig.sh')
-rwxr-xr-xscripts/genconfig.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 1911efc6..30c7eba1 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -6,12 +6,14 @@
mkdir -p generated
OUTFILE=generated/Config.in
+source configure
+
genconfig()
{
# Probe for container support on target
echo -e "# container support\nconfig TOYBOX_CONTAINER\n\tbool" || return 1
- $CC -c -xc -o /dev/null - 2>/dev/null << EOF
+ $CC -c -xc -o /dev/null - << EOF
#include <sched.h>
int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET;
EOF