From d4f000cf5ed2b856b4f4262a37b30c717fdc8c8e Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Tue, 23 Nov 2021 21:16:06 -0600 Subject: [PATCH] extconf.rb - fix openssl with old Windows builds (#2757) --- ext/puma_http11/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')} &&