Skip to content

Commit

Permalink
ignore pkgconfig when any openssl option is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
skaes committed Jan 11, 2022
1 parent e8ee01b commit b23fa75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/openssl/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
require "mkmf"
require File.expand_path('../deprecation', __FILE__)

dir_config("openssl")
dir_config_given = dir_config("openssl").any?
dir_config("kerberos")

Logging::message "=== OpenSSL for Ruby configurator ===\n"
Expand Down Expand Up @@ -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_given && pkg_config("openssl") && have_header("openssl/ssl.h")

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

0 comments on commit b23fa75

Please sign in to comment.