Skip to content

Commit e9798b1

Browse files
authored
Merge pull request ruby#486 from skaes/fix-with-openssldir-option
ignore pkgconfig when openssl-dir option is specified
2 parents 417c1ab + b23fa75 commit e9798b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
require "mkmf"
1515

16-
dir_config("openssl")
16+
dir_config_given = dir_config("openssl").any?
1717
dir_config("kerberos")
1818

1919
Logging::message "=== OpenSSL for Ruby configurator ===\n"
@@ -92,7 +92,7 @@ def find_openssl_library
9292
end
9393

9494
Logging::message "=== Checking for required stuff... ===\n"
95-
pkg_config_found = pkg_config("openssl") && have_header("openssl/ssl.h")
95+
pkg_config_found = !dir_config_given && pkg_config("openssl") && have_header("openssl/ssl.h")
9696

9797
if !pkg_config_found && !find_openssl_library
9898
Logging::message "=== Checking for required stuff failed. ===\n"

0 commit comments

Comments
 (0)