diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index 0dfb79603c1..b08c3ced1fd 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -154,7 +154,8 @@ def config_clean? end def config_static? - enable_config("static", true) + default_static = !truffle? + enable_config("static", default_static) end def config_cross_build? @@ -191,6 +192,10 @@ def nix? !(windows? || solaris? || darwin?) end +def truffle? + ::RUBY_ENGINE == 'truffleruby' +end + def concat_flags(*args) args.compact.join(" ") end