[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [git commit] trylink: don't use ld --gc-sections if ld doesn't support it
From:       vda.linux () googlemail ! com (Denys Vlasenko)
Date:       2009-06-26 22:24:35
Message-ID: 20090626222525.C16DB77826 () busybox ! osuosl ! org
[Download RAW message or body]

commit: http://git.busybox.net/busybox/commit/?id=eb1cda2f2d6236baf36986d2da07cc564617fa88
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master


Signed-off-by: Ian Abbott <abbotti at mev.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 scripts/trylink |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/scripts/trylink b/scripts/trylink
index 7ea1d5c..8c88546 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -99,6 +99,11 @@ else
 fi
 )`
 
+# The --gc-sections option is not supported by older versions of ld
+if test -n "$GC_SECTIONS"; then
+    GC_SECTIONS=`check_cc "$GC_SECTIONS" ""`
+fi
+
 # Sanitize lib list (dups, extra spaces etc)
 LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs`
 
-- 
1.6.0.6

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic