Mercurial > hg > toybox
diff configure @ 603:150a6d81bd02
Replace CCFLAGS with description of how to add flags to HOSTCC.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 18 Jun 2012 23:23:24 -0500 |
parents | 9bcc288a1c54 |
children | 3417db95f24b |
line wrap: on
line diff
--- a/configure Mon Jun 18 23:22:08 2012 -0500 +++ b/configure Mon Jun 18 23:23:24 2012 -0500 @@ -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 "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" -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