Mercurial > hg > toybox
changeset 860:a612857eb52d
Make genconfig use CFLAGS because building against a libc that isn't installed on the host may need --static to run the results.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 16 Apr 2013 22:45:47 -0500 |
parents | 4edd1cb3f700 |
children | 35b059e1654b |
files | scripts/genconfig.sh |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/genconfig.sh Sun Apr 14 12:45:36 2013 +0200 +++ b/scripts/genconfig.sh Tue Apr 16 22:45:47 2013 -0500 @@ -12,7 +12,7 @@ # 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 @@ 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 @@ 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>