Kaydet (Commit) 1feb672b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Use bundled OpenSSL when building for OS X 10.7 or later

http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion
http://stackoverflow.com/questions/7475914/libcrypto-deprecated-on-mac-os-x-10-7-lion

Apple apparently got fed up with the unstable ABI of OpenSSL, or
something, and recommend you either move to their "Common Crypto
Architecture", or, if you have to stay with OpenSSL, just build it
yourself statically and bundle with your application. So let's do
that.

Change-Id: I5f19fcce9b4e00ff2ce3089a2398b3f08f76a9a0
üst 8fa7b823
...@@ -8654,7 +8654,21 @@ DISABLE_OPENSSL="NO" ...@@ -8654,7 +8654,21 @@ DISABLE_OPENSSL="NO"
AC_MSG_CHECKING([whether to disable OpenSSL usage]) AC_MSG_CHECKING([whether to disable OpenSSL usage])
if test "$enable_openssl" = "yes"; then if test "$enable_openssl" = "yes"; then
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
if test "$_os" = "Darwin" -o "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o \ if test $_os = Darwin -a $MAC_OS_X_VERSION_MIN_REQUIRED -ge 1070; then
# OpenSSL is deprecated when building for 10.7 or later.
#
# http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion
# http://stackoverflow.com/questions/7475914/libcrypto-deprecated-on-mac-os-x-10-7-lion
#
# They apparently got fed up with the unstable ABI of
# OpenSSL, or something, and recommend you either move to
# their "Common Crypto Architecture", or, if you have to stay
# with OpenSSL, just build it yourself statically and bundle
# with your application.
with_system_openssl=no
libo_CHECK_SYSTEM_MODULE([openssl],[OPENSSL],[openssl])
elif test "$_os" = "Darwin" -o "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o \
"$_os" = "DragonFly" && test "$with_system_openssl" != "no"; then "$_os" = "DragonFly" && test "$with_system_openssl" != "no"; then
# Mac OS builds should get out without extra stuff is the Mac porters' # Mac OS builds should get out without extra stuff is the Mac porters'
# wish. And pkg-config is although Xcode ships a .pc for openssl # wish. And pkg-config is although Xcode ships a .pc for openssl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment