comparison configure @ 1451:5f9fbf75ad34 draft

Old compilers complain about linker options passed with -c, so split out $LDOPTIMIZE.
author Rob Landley <rob@landley.net>
date Sat, 30 Aug 2014 17:44:07 -0500
parents 67eedf74a707
children 2d5e3e345c14
comparison
equal deleted inserted replaced
1450:0089cd84afea 1451:5f9fbf75ad34
6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" 6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS"
7 [ -z "$CFLAGS" ] && CFLAGS="-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="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables" 11 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables"
12 [ -z "$LDOPTIMIZE" ] && LDOPTIMIZE="-Wl,--gc-sections"
12 [ -z "$CC" ] && CC=cc 13 [ -z "$CC" ] && CC=cc
13 [ -z "$STRIP" ] && STRIP=strip 14 [ -z "$STRIP" ] && STRIP=strip
14 15
15 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static" 16 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static"
16 [ -z "$HOSTCC" ] && HOSTCC=gcc 17 [ -z "$HOSTCC" ] && HOSTCC=gcc