From 96146200ea3b7b67b7e4a6b91f3419013d4cfaab Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 30 Aug 2014 17:44:07 -0500 Subject: Old compilers complain about linker options passed with -c, so split out $LDOPTIMIZE. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 6047baf7..fc58de6d 100644 --- a/configure +++ b/configure @@ -8,7 +8,8 @@ # Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned. CFLAGS="$CFLAGS -funsigned-char" -[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables" +[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables" +[ -z "$LDOPTIMIZE" ] && LDOPTIMIZE="-Wl,--gc-sections" [ -z "$CC" ] && CC=cc [ -z "$STRIP" ] && STRIP=strip -- cgit v1.2.3