OSDN Git Service

4aafb66042ad6c619dc9f910f417fa8a4a92855d
[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="-g -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="-O0 -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