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. --- scripts/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3