[PATCH v1 1/2] config.mak.in: set NO_OPENSSL and APPLE_COMMON_CRYPTO for macOS >10.11
- From
larsxschneider@gmail.com <larsxschneider@gmail.com>
- Date
- Oct 17, 2016, 00:25 UTC
- Message-ID
- <20161017002550.88782-2-larsxschneider@gmail.com>
- In-Reply-To
- <20161017002550.88782-1-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>
Apple removed the OpenSSL header files in macOS 10.11 and above. OpenSSL was deprecated since macOS 10.7.
Set `NO_OPENSSL` and `APPLE_COMMON_CRYPTO` to `YesPlease` as default for macOS. Make it possible to override this and use OpenSSL by defining `DARWIN_OPENSSL`.
Original-patch-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Lars Schneider <larsxschneider@gmail.com> --- config.mak.uname | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/config.mak.uname b/config.mak.uname index b232908..f0c94a9 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -108,6 +108,12 @@ ifeq ($(uname_S),Darwin) ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 11 && echo 1),1) HAVE_GETDELIM = YesPlease endif + ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 15 && echo 1),1) + ifndef DARWIN_OPENSSL + NO_OPENSSL = YesPlease + APPLE_COMMON_CRYPTO=YesPlease + endif + endif NO_MEMMEM = YesPlease USE_ST_TIMESPEC = YesPlease HAVE_DEV_TTY = YesPlease
-- 2.10.0