[ruby/openssl] Always respect the openssl prefix chosen by truffle/openssl-prefix on TruffleRuby

* See https://github.com/ruby/openssl/issues/650#issuecomment-1645699608

ca738e7e13
This commit is contained in:
Benoit Daloze 2023-07-21 16:42:42 +02:00 committed by Hiroshi SHIBATA
parent dd1af4b22d
commit 14d16bdb1a

View file

@ -13,7 +13,14 @@
require "mkmf" require "mkmf"
dir_config_given = dir_config("openssl").any? if defined?(::TruffleRuby)
# Always respect the openssl prefix chosen by truffle/openssl-prefix
require 'truffle/openssl-prefix'
dir_config_given = dir_config("openssl", ENV["OPENSSL_PREFIX"]).any?
else
dir_config_given = dir_config("openssl").any?
end
dir_config("kerberos") dir_config("kerberos")
Logging::message "=== OpenSSL for Ruby configurator ===\n" Logging::message "=== OpenSSL for Ruby configurator ===\n"