Skip to content

Commit

Permalink
Default to --disable-static on TruffleRuby
Browse files Browse the repository at this point in the history
* Shared libraries are more flexible and compile faster, see
  https://github.com/Shopify/oracle-truffleruby-collab/issues/11
* Static libraries can still be chosen (e.g., for testing) with:
  gem install nokogiri -- --use-system-libraries=false --enable-static
  • Loading branch information
eregon committed Feb 17, 2021
1 parent 97f4df3 commit 493d751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nokogiri/extconf.rb
Expand Up @@ -614,7 +614,7 @@ def do_clean
else
message "Building nokogiri using packaged libraries.\n"

static_p = enable_config("static", true)
static_p = enable_config("static", RUBY_ENGINE != 'truffleruby')
message "Static linking is #{static_p ? 'enabled' : 'disabled'}.\n"

cross_build_p = enable_config("cross-build")
Expand Down

0 comments on commit 493d751

Please sign in to comment.