Commit 2f51dee3 authored by Mislav Marohnić's avatar Mislav Marohnić
Browse files

Print configure options when openssl ext failed to compile

This helps to debug whether `--with-openssl-dir` was used properly.
parent 1fa109ce
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -821,7 +821,11 @@ build_package_verify_openssl() {
  "$RUBY_BIN" -e 'begin
    require "openssl"
  rescue LoadError
    abort "The Ruby openssl extension was not compiled. Missing the OpenSSL lib?"
    $stderr.puts "The Ruby openssl extension was not compiled. Missing the OpenSSL lib?"
    $stderr.puts "Configure options used:"
    require "rbconfig"; require "shellwords"
    RbConfig::CONFIG.fetch("configure_args").shellsplit.each { |arg| $stderr.puts "  #{arg}" }
    exit 1
  end' >&4 2>&1
}