diff options
author | Rob Landley <rob@landley.net> | 2012-02-13 08:44:32 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-02-13 08:44:32 -0600 |
commit | 2bd3a5df73723ef3aa274aab2d18de0ad9b31e25 (patch) | |
tree | b8b7b2a8d9f19b581141a90d31fee94dacc93123 /scripts | |
parent | 560feabc6aa7031d8e53e743970801ceed439403 (diff) | |
download | toybox-2bd3a5df73723ef3aa274aab2d18de0ad9b31e25.tar.gz |
The unshare test needs $CC defined, source configure to get it.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/genconfig.sh | 4 |
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 |