search winsock libraries explicitly
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bb3db69e2a
commit
11bc984efe
@ -40,6 +40,7 @@ result = pkg_config("openssl") && have_header("openssl/ssl.h")
|
|||||||
def find_openssl_library
|
def find_openssl_library
|
||||||
if $mswin || $mingw
|
if $mswin || $mingw
|
||||||
# required for static OpenSSL libraries
|
# required for static OpenSSL libraries
|
||||||
|
have_library("ws2_32")
|
||||||
have_library("gdi32") # OpenSSL <= 1.0.2 (for RAND_screen())
|
have_library("gdi32") # OpenSSL <= 1.0.2 (for RAND_screen())
|
||||||
have_library("crypt32")
|
have_library("crypt32")
|
||||||
end
|
end
|
||||||
|
@ -433,6 +433,7 @@ end
|
|||||||
case RUBY_PLATFORM
|
case RUBY_PLATFORM
|
||||||
when /mswin(32|64)|mingw/
|
when /mswin(32|64)|mingw/
|
||||||
test_func = "WSACleanup"
|
test_func = "WSACleanup"
|
||||||
|
have_library("iphlpapi")
|
||||||
have_library("ws2_32", "WSACleanup", headers)
|
have_library("ws2_32", "WSACleanup", headers)
|
||||||
when /cygwin/
|
when /cygwin/
|
||||||
test_func = "socket(0,0,0)"
|
test_func = "socket(0,0,0)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user