work around toolchains with broken visibility in libgcc/libpcc
authorRich Felker <dalias@aerifal.cx>
Sun, 8 Nov 2015 01:23:49 +0000 (20:23 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 8 Nov 2015 01:23:49 +0000 (20:23 -0500)
configure

index dece1d09e465051f0f09fa76a8475455e6820b7c..ee217713568ea7d55c5699043efb221a6dc73b54 100755 (executable)
--- 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=