E5FD
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46674c3 + a2dc925 commit 8072a9aCopy full SHA for 8072a9a
ext/openssl/extconf.rb
@@ -37,6 +37,12 @@
37
Logging::message "=== Checking for required stuff... ===\n"
38
result = pkg_config("openssl") && have_header("openssl/ssl.h")
39
unless result
40
+ if $mswin || $mingw
41
+ # required for static OpenSSL libraries
42
+ have_library("gdi32") # OpenSSL <= 1.0.2 (for RAND_screen())
43
+ have_library("crypt32")
44
+ end
45
+
46
result = have_header("openssl/ssl.h")
47
result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "CRYPTO_malloc")}
48
result &&= %w[ssl ssleay32].any? {|lib| have_library(lib, "SSL_new")}
0 commit comments