Skip to content

Commit ca738e7

Browse files
committed
Always respect the openssl prefix chosen by truffle/openssl-prefix on TruffleRuby
* See #650 (comment)
1 parent e379cc0 commit ca738e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ext/openssl/extconf.rb

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313

1414
require "mkmf"
1515

16-
dir_config_given = dir_config("openssl").any?
16+
if defined?(::TruffleRuby)
17+
# Always respect the openssl prefix chosen by truffle/openssl-prefix
18+
require 'truffle/openssl-prefix'
19+
dir_config_given = dir_config("openssl", ENV["OPENSSL_PREFIX"]).any?
20+
else
21+
dir_config_given = dir_config("openssl").any?
22+
end
23+
1724
dir_config("kerberos")
1825

1926
Logging::message "=== OpenSSL for Ruby configurator ===\n"

0 commit comments

Comments
 (0)