From 82801b9113222c21b088e173521eda99277d1b1b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Apr 2012 13:48:47 +0000 Subject: --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 --- ext/openssl/extconf.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/openssl') diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index e214173173..dd0ebf4fda 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 -- cgit v1.2.3