diff --git a/ext/puma_http11/extconf.rb b/ext/puma_http11/extconf.rb index 489e03f6c3..c9b9457de5 100644 --- a/ext/puma_http11/extconf.rb +++ b/ext/puma_http11/extconf.rb @@ -11,7 +11,7 @@ unless ENV["DISABLE_SSL"] dir_config("openssl") - found_ssl = if pkg_config 'openssl' + found_ssl = if (!$mingw || RUBY_VERSION >= '2.4') && (t = pkg_config 'openssl') puts 'using OpenSSL pkgconfig (openssl.pc)' true elsif %w'crypto libeay32'.find {|crypto| have_library(crypto, 'BIO_read')} &&