From 4386ad5abe8d36b9eb08b216ad708e117d93951d Mon Sep 17 00:00:00 2001 From: Stefan Kaes Date: Tue, 4 Jan 2022 13:28:26 +0100 Subject: [PATCH] ignore pkgconfig when any openssl option is specified --- ext/openssl/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 7e817ae2d..2587409d2 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -88,7 +88,7 @@ def find_openssl_library end Logging::message "=== Checking for required stuff... ===\n" -pkg_config_found = pkg_config("openssl") && have_header("openssl/ssl.h") +pkg_config_found = dir_config("openssl").compact.empty? && pkg_config("openssl") && have_header("openssl/ssl.h") if !pkg_config_found && !find_openssl_library Logging::message "=== Checking for required stuff failed. ===\n"