From ac1d20a607f2f701a24888864d307855cfaf33a4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 16 Apr 2013 22:45:47 -0500 Subject: Make genconfig use CFLAGS because building against a libc that isn't installed on the host may need --static to run the results. --- scripts/genconfig.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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 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 #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 #include #include -- cgit v1.2.3