aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-27 00:24:35 +0200
committerMike Frysinger <vapier@gentoo.org>2009-08-20 13:57:15 -0400
commitf5d4bddfbee4d9a5af479e20f4e17b5e2fb4a3ed (patch)
tree961cd58e5248634165a136111dfbd963d464e8e2
parent89f022469f42895aa12ee39aeb9c84bf45a58c4c (diff)
downloadbusybox-w32-f5d4bddfbee4d9a5af479e20f4e17b5e2fb4a3ed.tar.gz
busybox-w32-f5d4bddfbee4d9a5af479e20f4e17b5e2fb4a3ed.tar.bz2
busybox-w32-f5d4bddfbee4d9a5af479e20f4e17b5e2fb4a3ed.zip
trylink: don't use ld --gc-sections if ld doesn't support it
Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xscripts/trylink5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/trylink b/scripts/trylink
index 7ea1d5cad..8c8854679 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -99,6 +99,11 @@ else
99fi 99fi
100)` 100)`
101 101
102# The --gc-sections option is not supported by older versions of ld
103if test -n "$GC_SECTIONS"; then
104 GC_SECTIONS=`check_cc "$GC_SECTIONS" ""`
105fi
106
102# Sanitize lib list (dups, extra spaces etc) 107# Sanitize lib list (dups, extra spaces etc)
103LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs` 108LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs`
104 109