ruby-changes:45519
From: nobu <ko1@a...>
Date: Fri, 10 Feb 2017 13:00:00 +0900 (JST)
Subject: [ruby-changes:45519] nobu:r57592 (trunk): openssl: fix broken openssl check
nobu 2017-02-10 12:59:55 +0900 (Fri, 10 Feb 2017) New Revision: 57592 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57592 Log: openssl: fix broken openssl check * ext/openssl/deprecation.rb: check for broken OpenSSL only on mac OS. [ruby-core:79475] [Bug #13200] Modified files: trunk/ext/openssl/deprecation.rb Index: ext/openssl/deprecation.rb =================================================================== --- ext/openssl/deprecation.rb (revision 57591) +++ ext/openssl/deprecation.rb (revision 57592) @@ -3,7 +3,7 @@ module OpenSSL https://github.com/ruby/ruby/blob/trunk/ext/openssl/deprecation.rb#L3 def self.deprecated_warning_flag unless flag = (@deprecated_warning_flag ||= nil) if try_compile("", flag = "-Werror=deprecated-declarations") - if with_config("broken-apple-openssl") + if /darwin/ =~ RUBY_PLATFORM and with_config("broken-apple-openssl") flag = "-Wno-deprecated-declarations" end $warnflags << " #{flag}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/