[ruby-core:62464] [ruby-trunk - Bug #9817] The extconf.rb for OpenSSL assumes MingW

From: usa@...
Date: 2014-05-08 15:34:15 UTC
List: ruby-core #62464
Issue #9817 has been updated by Usaku NAKAMURA.


I didn't notice this by now, because there was no problem for building mswin at all.
Are these lines really necessary on mingw?

----------------------------------------
Bug #9817: The extconf.rb for OpenSSL assumes MingW
https://bugs.ruby-lang.org/issues/9817#change-46621

* Author: Daniel Berger
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [i386-mswin32_100]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
It appears that the extconf.rb file for openssl assumes mingw. The problem is that gdi32 and wsock32 need to be linked, even for Visual Studio.

The simple fix is to change "if $mingw" to "if File::ALT_SEPARATOR" on line 40.




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next