Skip to content

Commit

Permalink
work around toolchains with broken visibility in libgcc/libpcc
Browse files Browse the repository at this point in the history
  • Loading branch information
richfelker committed Nov 8, 2015
1 parent 31d73a5 commit ea1e2c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit ea1e2c5

Please sign in to comment.