aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/0011-work-around-toolchains-with-broken-visibility-in-lib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/musl/0011-work-around-toolchains-with-broken-visibility-in-lib.patch')
-rw-r--r--main/musl/0011-work-around-toolchains-with-broken-visibility-in-lib.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/musl/0011-work-around-toolchains-with-broken-visibility-in-lib.patch b/main/musl/0011-work-around-toolchains-with-broken-visibility-in-lib.patch
new file mode 100644
index 0000000000..d871e8b991
--- /dev/null
+++ b/main/musl/0011-work-around-toolchains-with-broken-visibility-in-lib.patch
@@ -0,0 +1,29 @@
+From ea1e2c5e18dd0790fb9b2af2bd947f4981736dc2 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Sat, 7 Nov 2015 20:23:49 -0500
+Subject: [PATCH] work around toolchains with broken visibility in
+ libgcc/libpcc
+
+---
+ configure | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/configure b/configure
+index dece1d0..ee21771 100755
+--- a/configure
++++ b/configure
+@@ -534,6 +534,11 @@ tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
+ # runtime library; implementation error is also a possibility.
+ tryldflag LDFLAGS_AUTO -Wl,--no-undefined
+
++# Avoid exporting symbols from compiler runtime libraries. They
++# should be hidden anyway, but some toolchains including old gcc
++# versions built without shared library support and pcc are broken.
++tryldflag LDFLAGS_AUTO -Wl,--exclude-libs=ALL
++
+ test "$shared" = "no" || {
+ # Disable dynamic linking if ld is broken and can't do -Bsymbolic-functions
+ LDFLAGS_DUMMY=
+--
+2.7.0
+