aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-11-02 08:32:21 -0600
committerRob Landley <rob@landley.net>2015-11-02 08:32:21 -0600
commitd20b9ff3ee0f1014a740baed908dc0a08c646fb6 (patch)
treec575145fa158e4acc746ae1e17db76753263450e /configure
parent539f8c8b56729d1b6562ade260bf6c44d1f9637b (diff)
downloadtoybox-d20b9ff3ee0f1014a740baed908dc0a08c646fb6.tar.gz
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.
Diffstat (limited to 'configure')
-rw-r--r--configure1
1 files changed, 1 insertions, 0 deletions
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"