summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/extmk.rb7
-rw-r--r--ext/openssl/deprecation.rb2
-rw-r--r--ext/openssl/extconf.rb2
-rw-r--r--version.h2
4 files changed, 8 insertions, 5 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 04d374ece6..0274794b82 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -809,9 +809,12 @@ if $configure_only and $command_output
fails.each do |d, n, err|
d = "#{d}:#{n}:"
if err
- d << " " << err
+ err.scan(/.+/) do |e|
+ mf.puts %Q<\t@echo "#{d} #{e.gsub(/["`$^]/, '\\\\\\&')}">
+ end
+ else
+ mf.puts %Q<\t@echo "#{d}">
end
- mf.puts %Q<\t@echo "#{d}">
end
mf.puts %Q<\t@echo "*** Fix the problems, then remove these directories and try again if you want.">
end
diff --git a/ext/openssl/deprecation.rb b/ext/openssl/deprecation.rb
index 7dfc87c1c6..0c3ab6287e 100644
--- a/ext/openssl/deprecation.rb
+++ b/ext/openssl/deprecation.rb
@@ -3,7 +3,7 @@ module OpenSSL
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}"
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 60bd518e16..96982309c3 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -60,7 +60,7 @@ unless result
raise "OpenSSL 0.9.8 or later required."
end
-unless OpenSSL.check_func("SSL_library_init()", "openssl/ssl.h")
+if /darwin/ =~ RUBY_PLATFORM and !OpenSSL.check_func("SSL_library_init()", "openssl/ssl.h")
raise "Ignore OpenSSL broken by Apple.\nPlease use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')"
end
diff --git a/version.h b/version.h
index 5fbf0e3e35..3c048eb25d 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.4.0"
#define RUBY_RELEASE_DATE "2017-03-12"
-#define RUBY_PATCHLEVEL 55
+#define RUBY_PATCHLEVEL 56
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3