aboutsummaryrefslogtreecommitdiff
path: root/scripts/make.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-08-30 17:44:07 -0500
committerRob Landley <rob@landley.net>2014-08-30 17:44:07 -0500
commit96146200ea3b7b67b7e4a6b91f3419013d4cfaab (patch)
tree4de4061f80fa6025510ab872cca2b325ab01e61a /scripts/make.sh
parent082a9a7d25f78856daf1dc9bb8f1f70f98f7470f (diff)
downloadtoybox-96146200ea3b7b67b7e4a6b91f3419013d4cfaab.tar.gz
Old compilers complain about linker options passed with -c, so split out $LDOPTIMIZE.
Diffstat (limited to 'scripts/make.sh')
-rwxr-xr-xscripts/make.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index 66fdad3b..42143f8e 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -180,7 +180,7 @@ do_loudly()
BUILD="${CROSS_COMPILE}${CC} $CFLAGS -I . $OPTIMIZE"
FILES="$(ls lib/*.c) main.c $TOYFILES"
-LINK="-o toybox_unstripped -Wl,--as-needed $(cat generated/optlibs.dat)"
+LINK="$LDOPTIMIZE -o toybox_unstripped -Wl,--as-needed $(cat generated/optlibs.dat)"
# This is a parallel version of: do_loudly $BUILD $FILES $LINK || exit 1