mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
2 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,7 @@ result = pkg_config("openssl") && have_header("openssl/ssl.h")
|
|||
def find_openssl_library
|
||||
if $mswin || $mingw
|
||||
# required for static OpenSSL libraries
|
||||
have_library("ws2_32")
|
||||
have_library("gdi32") # OpenSSL <= 1.0.2 (for RAND_screen())
|
||||
have_library("crypt32")
|
||||
end
|
||||
|
|
|
@ -433,6 +433,7 @@ end
|
|||
case RUBY_PLATFORM
|
||||
when /mswin(32|64)|mingw/
|
||||
test_func = "WSACleanup"
|
||||
have_library("iphlpapi")
|
||||
have_library("ws2_32", "WSACleanup", headers)
|
||||
when /cygwin/
|
||||
test_func = "socket(0,0,0)"
|
||||
|
|
Loading…
Add table
Reference in a new issue