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. --- configure | 1 + 1 file changed, 1 insertion(+) (limited to 'configure') diff --git a/configure b/configure index 7b10f6e5..ff1aaf24 100644 --- a/configure +++ b/configure @@ -23,3 +23,4 @@ CFLAGS="$CFLAGS -funsigned-char" # If HOSTCC needs CFLAGS or LDFLAGS, just add them to the variable # ala HOSTCC="blah-cc --static" [ -z "$HOSTCC" ] && HOSTCC=cc +HOSTCC="$HOSTCC -DBUILD_FOR_HOST" -- cgit v1.2.3