diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-07-21 16:42:42 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-07-24 15:08:54 +0900 |
commit | 14d16bdb1ad8e98d76ec2c43b2c1c412ff707d0b (patch) | |
tree | bacc96bffc50eedfbf39fa2fb9751eeefefaec54 /ext/openssl/extconf.rb | |
parent | dd1af4b22d99642c2300e60d37215ea3c43ba337 (diff) |
[ruby/openssl] Always respect the openssl prefix chosen by truffle/openssl-prefix on TruffleRuby
* See https://github.com/ruby/openssl/issues/650#issuecomment-1645699608
https://github.com/ruby/openssl/commit/ca738e7e13
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r-- | ext/openssl/extconf.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 551c470a70..368145d23a 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -13,7 +13,14 @@ 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") Logging::message "=== OpenSSL for Ruby configurator ===\n" |