diff options
author | Rob Landley <rob@landley.net> | 2014-08-30 17:44:07 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-08-30 17:44:07 -0500 |
commit | 96146200ea3b7b67b7e4a6b91f3419013d4cfaab (patch) | |
tree | 4de4061f80fa6025510ab872cca2b325ab01e61a /configure | |
parent | 082a9a7d25f78856daf1dc9bb8f1f70f98f7470f (diff) | |
download | toybox-96146200ea3b7b67b7e4a6b91f3419013d4cfaab.tar.gz |
Old compilers complain about linker options passed with -c, so split out $LDOPTIMIZE.
Diffstat (limited to 'configure')
-rw-r--r-- | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |