summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
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