OSDN Git Service

Revert some debug code accidentally checked in at commit 715.
[android-x86/external-toybox.git] / configure
1 # 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"
7 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts"
8 # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
9 CFLAGS="$CFLAGS -funsigned-char"
10
11 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections"
12 [ -z "$CC" ] && CC=cc
13 [ -z "$STRIP" ] && STRIP=strip
14
15 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static"
16 [ -z "$HOSTCC" ] && HOSTCC=gcc