End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Ext::CargoBuilder#ruby_static?
ruby_static?
lib/rubygems/ext/cargo_builder.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/ext/cargo_builder.rb, line 121
def ruby_static?
return true if %w[1 true].include?(ENV["RUBY_STATIC"])
makefile_config("ENABLE_SHARED") == "no"
end
No documentation available
See also
#rename_cdylib_for_ruby_compatibility
#rustc_dynamic_linker_flags
#rb_config_env
#rustc_lib_flags
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2