Skip to content

Commit

Permalink
ensure libxml2/libxslt symbols aren't exported
Browse files Browse the repository at this point in the history
see #1959 for details
  • Loading branch information
flavorjones committed Feb 1, 2020
1 parent b9e2f40 commit a417392
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ def using_system_libraries?
# Read CFLAGS from ENV and make sure compiling works.
add_cflags(ENV["CFLAGS"])

# Ensure libxml2/libxslt symbols aren't exported. See #1959 for details.
$LDFLAGS << " -Wl,--exclude-libs,ALL"

if windows?
$CFLAGS << " -DXP_WIN -DXP_WIN32 -DUSE_INCLUDED_VASPRINTF"
end
Expand Down

0 comments on commit a417392

Please sign in to comment.