From 97abd4a9813b0bd2f16049e2291bba076828408f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 18 Jun 2012 23:23:24 -0500 Subject: Replace CCFLAGS with description of how to add flags to HOSTCC. --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 4e05af7e..bf2561b7 100644 --- a/configure +++ b/configure @@ -4,10 +4,13 @@ # A synonym. [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" - [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" +# Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned. CFLAGS="$CFLAGS -funsigned-char" + [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections" [ -z "$CC" ] && CC=cc [ -z "$STRIP" ] && STRIP=strip + +# If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static" [ -z "$HOSTCC" ] && HOSTCC=gcc -- cgit v1.2.3