1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

extconf.rb - fix openssl with old Windows builds (#2757)

This commit is contained in:
MSP-Greg 2021-11-23 21:16:06 -06:00 committed by GitHub
parent be5d3de002
commit ad131ceafb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ end
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')} &&