From 7ee3c0f7ef2003b18a1fa3a7a12fa677c2c9ff43 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Tue, 23 Nov 2021 09:27:51 -0600 Subject: [PATCH] extconf.rb - fix openssl with old Windows builds --- 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')} &&