Mercurial > hg > toybox
comparison configure @ 512:9bcc288a1c54 0.2.1
Fix from Georgi Chorbadzhiyski to make cross compiling more robust.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 03 Mar 2012 10:56:11 -0600 |
parents | 51722949f2cc |
children | 150a6d81bd02 |
comparison
equal
deleted
inserted
replaced
511:15bad33d5ded | 512:9bcc288a1c54 |
---|---|
6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" | 6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" |
7 | 7 |
8 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" | 8 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" |
9 CFLAGS="$CFLAGS -funsigned-char" | 9 CFLAGS="$CFLAGS -funsigned-char" |
10 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections" | 10 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections" |
11 [ -z "$CC" ] && CC="cc" | 11 [ -z "$CC" ] && CC=cc |
12 CC="${CROSS_COMPILE}${CC}" | 12 [ -z "$STRIP" ] && STRIP=strip |
13 [ -z "$STRIP" ] && STRIP="${CROSS_COMPILE}strip" | |
14 [ -z "$HOSTCC" ] && HOSTCC=gcc | 13 [ -z "$HOSTCC" ] && HOSTCC=gcc |