comparison configure @ 603:150a6d81bd02

Replace CCFLAGS with description of how to add flags to HOSTCC.
author Rob Landley <rob@landley.net>
date Mon, 18 Jun 2012 23:23:24 -0500
parents 9bcc288a1c54
children 3417db95f24b
comparison
equal deleted inserted replaced
602:12eddd9a1fe4 603:150a6d81bd02
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="-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"
7 10
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 "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections"
11 [ -z "$CC" ] && CC=cc 12 [ -z "$CC" ] && CC=cc
12 [ -z "$STRIP" ] && STRIP=strip 13 [ -z "$STRIP" ] && STRIP=strip
14
15 # If HOSTCC needs CFLAGS, add them to the variable ala HOSTCC="blah-cc --static"
13 [ -z "$HOSTCC" ] && HOSTCC=gcc 16 [ -z "$HOSTCC" ] && HOSTCC=gcc