summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/extconf.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index d271cf83b9..e214173173 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -57,6 +57,11 @@ unless have_header("openssl/conf_api.h")
message "OpenSSL 0.9.6 or later required.\n"
exit 1
end
+if try_compile("", flag = "-Werror=deprecated-declarations")
+ unless have_func("SSL_library_init()", "openssl/ssl.h", flag)
+ abort "Ignore OpenSSL broken by Apple"
+ end
+end
message "=== Checking for OpenSSL features... ===\n"
have_func("ERR_peek_last_error")
@@ -139,9 +144,6 @@ have_struct_member("X509_ATTRIBUTE", "single", "openssl/x509.h")
message "=== Checking done. ===\n"
-if try_compile("", flag = " -Wno-deprecated-declarations")
- $warnflags << flag
-end
create_header
create_makefile("openssl")
message "Done.\n"