From 2bd3a5df73723ef3aa274aab2d18de0ad9b31e25 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 13 Feb 2012 08:44:32 -0600 Subject: The unshare test needs $CC defined, source configure to get it. --- scripts/genconfig.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/genconfig.sh') 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 int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET; EOF -- cgit v1.2.3