Mercurial > hg > toybox
changeset 454:8f5780dd6da4
The unshare test needs $CC defined, source configure to get it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 13 Feb 2012 08:44:32 -0600 |
parents | 8bc2fec2abf3 |
children | 6c62d5b6675a |
files | scripts/genconfig.sh |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/genconfig.sh Mon Feb 13 07:46:36 2012 -0600 +++ b/scripts/genconfig.sh Mon Feb 13 08:44:32 2012 -0600 @@ -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