blob: bf2561b7de16b470801d46785e180b923367f59b [file] [log] [blame]
Rob Landley28964802008-01-19 17:08:39 -06001# Toybox configuration file.
2
3# This sets environment variables used by scripts/make.sh
4
5# A synonym.
6[ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS"
Rob Landley28964802008-01-19 17:08:39 -06007[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts"
Rob Landley97abd4a2012-06-18 23:23:24 -05008# Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
Rob Landley28964802008-01-19 17:08:39 -06009CFLAGS="$CFLAGS -funsigned-char"
Rob Landley97abd4a2012-06-18 23:23:24 -050010
Rob Landley28964802008-01-19 17:08:39 -060011[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections"
Rob Landley344c2672012-03-03 10:56:11 -060012[ -z "$CC" ] && CC=cc
13[ -z "$STRIP" ] && STRIP=strip
Rob Landley97abd4a2012-06-18 23:23:24 -050014
15# If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static"
Rob Landley28964802008-01-19 17:08:39 -060016[ -z "$HOSTCC" ] && HOSTCC=gcc