Issue #9817 has been updated by Daniel Berger.


Looking at the source code, File::ALT_SEPARATOR is only appears to be defined on Windows. It's set in file.c if DOSISH is defined, and the DOSISH macro is set in defines.h if _WIN32 is defined.

In any case, it's definitely not limited to $mingw.

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

* Author: Daniel Berger
* Status: Open
* Priority: Normal
* Assignee: openssl
* 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/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>