]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Ignore deprecation warnings on OS X
authorSebastian Hahn <sebastian@torproject.org>
Wed, 10 Aug 2011 17:22:41 +0000 (19:22 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 10 Aug 2011 21:12:09 +0000 (23:12 +0200)
Starting with Lion, Apple decided to deprecate the system openssl. We
can start requiring users to install their own openssl once OS X doesn't
ship with it anymore.

changes/bug3643 [new file with mode: 0644]
configure.in

diff --git a/changes/bug3643 b/changes/bug3643
new file mode 100644 (file)
index 0000000..86bd920
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Selectively disable deprecation warnings on OS X because Lion started
+      deprecating the shipped copy of openssl. Fixes bug 3643.
+
index aa2233d4ebc06557b5f277fcd487d5fd6c9b80aa..4e84298456d4e02d8edd553b7bce389ed4aea076 100644 (file)
@@ -906,6 +906,15 @@ else
   enable_gcc_warnings_advisory=no
 fi
 
+# OS X Lion started deprecating the system openssl. Let's just disable
+# all deprecation warnings on OS X.
+case "$host_os" in
+
+ darwin*)
+    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
+    ;;
+esac
+
 # Add some more warnings which we use in development but not in the
 # released versions.  (Some relevant gcc versions can't handle these.)
 if test x$enable_gcc_warnings = xyes || test x$enable_gcc_warnings_advisory = xyes; then