Skip to content

Commit

Permalink
fix(windows): ensure libxml2 symbols are exported from nokogiri.so
Browse files Browse the repository at this point in the history
Related to #2167
Related to rubys/nokogumbo#163
  • Loading branch information
flavorjones committed Mar 7, 2021
1 parent b99ecb8 commit 7ace791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/nokogiri/extconf.rb
Expand Up @@ -741,6 +741,10 @@ def compile
recipe.configure_options += ["RANLIB=/usr/bin/ranlib", "AR=/usr/bin/ar"]
end

if windows?
cflags = concat_flags(cflags, "-ULIBXML_STATIC", "-DIN_LIBXML")
end

recipe.configure_options += [
"--without-python",
"--without-readline",
Expand Down

0 comments on commit 7ace791

Please sign in to comment.