ruby-changes:50494
From: nobu <ko1@a...>
Date: Fri, 2 Mar 2018 13:36:19 +0900 (JST)
Subject: [ruby-changes:50494] nobu:r62628 (trunk): search winsock libraries explicitly
nobu 2018-03-02 13:36:14 +0900 (Fri, 02 Mar 2018) New Revision: 62628 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62628 Log: search winsock libraries explicitly Modified files: trunk/ext/openssl/extconf.rb trunk/ext/socket/extconf.rb Index: ext/openssl/extconf.rb =================================================================== --- ext/openssl/extconf.rb (revision 62627) +++ ext/openssl/extconf.rb (revision 62628) @@ -40,6 +40,7 @@ result = pkg_config("openssl") && have_h https://github.com/ruby/ruby/blob/trunk/ext/openssl/extconf.rb#L40 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 Index: ext/socket/extconf.rb =================================================================== --- ext/socket/extconf.rb (revision 62627) +++ ext/socket/extconf.rb (revision 62628) @@ -433,6 +433,7 @@ end https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L433 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)" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/