summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 01:48:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 01:48:52 +0000
commit4c12eb747e36b99fc3831bf1d8ffca1777581870 (patch)
tree1c6569d39b024ba8f9e68d836c0b70b097a200ae
parenta77ea177fe6609137c677d2c33453467eaea30df (diff)
* ext/openssl/extconf.rb: suppress useless deprecation warnings
from OpenSSL added by Apple. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/digest/md5/extconf.rb3
-rw-r--r--ext/digest/rmd160/extconf.rb3
-rw-r--r--ext/digest/sha1/extconf.rb3
-rw-r--r--ext/digest/sha2/extconf.rb3
-rw-r--r--ext/openssl/extconf.rb3
6 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be4a7a36d37..42e7eb8e5fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 27 10:48:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/extconf.rb: suppress useless deprecation warnings
+ from OpenSSL added by Apple.
+
Sun Feb 26 23:29:49 2012 NARUSE, Yui <naruse@ruby-lang.org>
* regparse.c (add_code_range_to_buf0): wrong condition of duplicated
diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb
index ddfdb707f29..803741a6d91 100644
--- a/ext/digest/md5/extconf.rb
+++ b/ext/digest/md5/extconf.rb
@@ -22,4 +22,7 @@ have_header("sys/cdefs.h")
$preload = %w[digest]
+if try_compile("", flag = " -Wno-deprecated-declarations")
+ $warnflags << flag
+end
create_makefile("digest/md5")
diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb
index cc361e3d2bd..8d8cdee6bab 100644
--- a/ext/digest/rmd160/extconf.rb
+++ b/ext/digest/rmd160/extconf.rb
@@ -21,4 +21,7 @@ have_header("sys/cdefs.h")
$preload = %w[digest]
+if try_compile("", flag = " -Wno-deprecated-declarations")
+ $warnflags << flag
+end
create_makefile("digest/rmd160")
diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb
index fa9945cd430..77a4b2b8472 100644
--- a/ext/digest/sha1/extconf.rb
+++ b/ext/digest/sha1/extconf.rb
@@ -21,4 +21,7 @@ have_header("sys/cdefs.h")
$preload = %w[digest]
+if try_compile("", flag = " -Wno-deprecated-declarations")
+ $warnflags << flag
+end
create_makefile("digest/sha1")
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb
index a8f0198cf0a..e0634245a90 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -26,5 +26,8 @@ have_header("sys/cdefs.h")
$preload = %w[digest]
if have_type("uint64_t", "defs.h", $defs.join(' '))
+ if try_compile("", flag = " -Wno-deprecated-declarations")
+ $warnflags << flag
+ end
create_makefile("digest/sha2")
end
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 3cea2ded7bb..44ea3e5d0ea 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -146,6 +146,9 @@ 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"