diff options
author | Rob Landley <rob@landley.net> | 2013-04-16 22:45:47 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-04-16 22:45:47 -0500 |
commit | ac1d20a607f2f701a24888864d307855cfaf33a4 (patch) | |
tree | 5ef9053502b86549f9a094e45e6165197050ec7c | |
parent | a84233539570a004eef42cf14238774b82f9da92 (diff) | |
download | toybox-ac1d20a607f2f701a24888864d307855cfaf33a4.tar.gz |
Make genconfig use CFLAGS because building against a libc that isn't installed on the host may need --static to run the results.
-rwxr-xr-x | scripts/genconfig.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index b1eb2a8e..71bc609a 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -12,7 +12,7 @@ probeconfig() # Probe for container support on target echo -e "# container support\nconfig TOYBOX_CONTAINER\n\tbool" || return 1 - ${CROSS_COMPILE}${CC} -xc -o /dev/null - 2>/dev/null << EOF + ${CROSS_COMPILE}${CC} $CFLAGS -xc -o /dev/null - 2>/dev/null << EOF #include <linux/sched.h> int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET; @@ -51,7 +51,7 @@ genconfig() headerprobes() { - ${CROSS_COMPILE}${CC} -xc -o /dev/null - 2>/dev/null << EOF + ${CROSS_COMPILE}${CC} $CFLAGS -xc -o /dev/null - 2>/dev/null << EOF #include <fcntl.h> #ifndef O_NOFOLLOW #error posix 2008 was a while ago now @@ -60,7 +60,7 @@ EOF if [ $? -ne 0 ] then rm -f a.out - ${CROSS_COMPILE}${CC} -xc - 2>/dev/null << EOF + ${CROSS_COMPILE}${CC} $CFLAGS -xc - 2>/dev/null << EOF #include <stdio.h> #include <sys/types.h> #include <asm/fcntl.h> |