Mercurial > hg > toybox
comparison configure @ 787:0ef095b63a66
Revert some debug code accidentally checked in at commit 715.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 13 Jan 2013 13:48:25 -0600 |
parents | 3417db95f24b |
children | 67eedf74a707 |
comparison
equal
deleted
inserted
replaced
786:5bc258a4c750 | 787:0ef095b63a66 |
---|---|
2 | 2 |
3 # This sets environment variables used by scripts/make.sh | 3 # This sets environment variables used by scripts/make.sh |
4 | 4 |
5 # A synonym. | 5 # A synonym. |
6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" | 6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" |
7 [ -z "$CFLAGS" ] && CFLAGS="-g -Wall -Wundef -Wno-char-subscripts" | 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. | 8 # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned. |
9 CFLAGS="$CFLAGS -funsigned-char" | 9 CFLAGS="$CFLAGS -funsigned-char" |
10 | 10 |
11 [ -z "$OPTIMIZE" ] && OPTIMIZE="-O0 -ffunction-sections -fdata-sections -Wl,--gc-sections" | 11 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections" |
12 [ -z "$CC" ] && CC=cc | 12 [ -z "$CC" ] && CC=cc |
13 [ -z "$STRIP" ] && STRIP=strip | 13 [ -z "$STRIP" ] && STRIP=strip |
14 | 14 |
15 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static" | 15 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static" |
16 [ -z "$HOSTCC" ] && HOSTCC=gcc | 16 [ -z "$HOSTCC" ] && HOSTCC=gcc |