summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.14.3-trylink-gc-sections.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-09-10 10:51:15 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-09-10 10:51:15 +0200
commitf39dbdea735743d6d8f3a9cac67a9c3c6a537826 (patch)
tree7c3b5a1b44df5ea6387020b86f40242c5c0dcdb6 /package/busybox/busybox-1.14.3-trylink-gc-sections.patch
parent5cc0622a14054b8b2b1e2d5f37565a31f65c6511 (diff)
downloadbuildroot-novena-f39dbdea735743d6d8f3a9cac67a9c3c6a537826.tar.gz
buildroot-novena-f39dbdea735743d6d8f3a9cac67a9c3c6a537826.zip
busybox: 1.14.3 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.14.3-trylink-gc-sections.patch')
-rw-r--r--package/busybox/busybox-1.14.3-trylink-gc-sections.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.14.3-trylink-gc-sections.patch b/package/busybox/busybox-1.14.3-trylink-gc-sections.patch
new file mode 100644
index 000000000..52a7aef26
--- /dev/null
+++ b/package/busybox/busybox-1.14.3-trylink-gc-sections.patch
@@ -0,0 +1,15 @@
+diff -urpN busybox-1.14.3/scripts/trylink busybox-1.14.3-trylink-gc-sections/scripts/trylink
+--- busybox-1.14.3/scripts/trylink 2009-08-02 20:16:36.000000000 +0200
++++ busybox-1.14.3-trylink-gc-sections/scripts/trylink 2009-09-09 01:53:45.000000000 +0200
+@@ -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`
+