summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:48:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:48:47 +0000
commit82801b9113222c21b088e173521eda99277d1b1b (patch)
tree8c7d324651d110b52c1304ad521811e413a8fa5b /ext/openssl
parente0431daa00c45948d21ff46304aa885d465c9f57 (diff)
--with-broken-apple-openssl option
* ext/openssl/extconf.rb: add --with-broken-apple-openssl option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/extconf.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index e214173173e..dd0ebf4fda4 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -59,7 +59,9 @@ unless have_header("openssl/conf_api.h")
end
if try_compile("", flag = "-Werror=deprecated-declarations")
unless have_func("SSL_library_init()", "openssl/ssl.h", flag)
- abort "Ignore OpenSSL broken by Apple"
+ with_config("broken-apple-openssl") or
+ abort "Ignore OpenSSL broken by Apple"
+ $warnflags << " -Wno-deprecated-declarations"
end
end