From: Rich Felker Date: Sun, 8 Nov 2015 01:23:49 +0000 (-0500) Subject: work around toolchains with broken visibility in libgcc/libpcc X-Git-Tag: v1.1.13~131 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea1e2c5e18dd0790fb9b2af2bd947f4981736dc2;p=oweals%2Fmusl.git work around toolchains with broken visibility in libgcc/libpcc --- diff --git a/configure b/configure index dece1d09..ee217713 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=