OSDN Git Service

Fix from Georgi Chorbadzhiyski to make cross compiling more robust.
[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
8 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts"
9 CFLAGS="$CFLAGS -funsigned-char"
10 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections"
11 [ -z "$CC" ] && CC=cc
12 [ -z "$STRIP" ] && STRIP=strip
13 [ -z "$HOSTCC" ] && HOSTCC=gcc