From d20b9ff3ee0f1014a740baed908dc0a08c646fb6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 2 Nov 2015 08:32:21 -0600 Subject: Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endian seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs around problematic (smack) includes from toys.h. --- scripts/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index a724d5f7..3dd4f90c 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -213,7 +213,7 @@ fi echo "generated/help.h" if [ generated/config2help -ot scripts/config2help.c ] then - do_loudly $HOSTCC scripts/config2help.c $CFLAGS -I . lib/xwrap.c lib/llist.c \ + do_loudly $HOSTCC scripts/config2help.c -I . lib/xwrap.c lib/llist.c \ lib/lib.c lib/portability.c -o generated/config2help || exit 1 fi generated/config2help Config.in $KCONFIG_CONFIG > generated/help.h || exit 1 -- cgit v1.2.3