comparison configure @ 1760:c21fe4bc2249 draft

Flag to make llvm shut up about a broken warning.
author Rob Landley <rob@landley.net>
date Fri, 27 Mar 2015 21:41:14 -0500
parents 0bf35904cabc
children
comparison
equal deleted inserted replaced
1759:fa8f0a5dfc11 1760:c21fe4bc2249
5 # A synonym. 5 # A synonym.
6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" 6 [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS"
7 7
8 # CFLAGS and OPTIMIZE are different so you can add extra CFLAGS without 8 # CFLAGS and OPTIMIZE are different so you can add extra CFLAGS without
9 # disabling default optimizations 9 # disabling default optimizations
10 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" 10 [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts -Wno-string-plus-int"
11 # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned. 11 # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
12 CFLAGS="$CFLAGS -funsigned-char" 12 CFLAGS="$CFLAGS -funsigned-char"
13 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables" 13 [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables"
14 14
15 # We accept LDFLAGS, but by default don't have anything in it 15 # We accept LDFLAGS, but by default don't have anything in it