diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb index a5f64b51fb..f43a9f345b 100644 --- a/spec/ruby/optional/capi/spec_helper.rb +++ b/spec/ruby/optional/capi/spec_helper.rb @@ -27,7 +27,7 @@ def compile_extension(name) ruby_library = "#{RbConfig::CONFIG['libdir']}/#{libruby_so}" unless libruby_so and File.exist?(ruby_library) # Statically-compiled lib in the binary - ruby_library = RbConfig.ruby + ruby_library = ENV['RUBY_EXE'] end return lib if File.exist?(lib) and