diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-07-21 16:42:42 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-07-21 16:42:42 +0200 |
commit | ca738e7e13570e88eaa9892cbb3dffb330320706 (patch) | |
tree | ef231909432e3cd82066c9a0d1dc9c886d39095f /ext/openssl | |
parent | e379cc0cca776d0d4be84ddb73bb729f0fdb5ced (diff) | |
download | ruby-openssl-ca738e7e13570e88eaa9892cbb3dffb330320706.tar.gz |
Always respect the openssl prefix chosen by truffle/openssl-prefix on TruffleRuby
* See https://github.com/ruby/openssl/issues/650#issuecomment-1645699608
Diffstat (limited to 'ext/openssl')
-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 551c470a..368145d2 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" |