зеркало из https://github.com/github/ruby.git
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:
Родитель
bb3db69e2a
Коммит
11bc984efe
|
@ -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)"
|
||||
|
|
Загрузка…
Ссылка в новой задаче