Makefile: set NO_OPENSSL on macOS by default
authorLars Schneider <larsxschneider@gmail.com>
Sun, 6 Nov 2016 19:35:04 +0000 (20:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Nov 2016 19:10:36 +0000 (11:10 -0800)
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. It is possible to override this and use OpenSSL by defining
`NO_APPLE_COMMON_CRYPTO`.

Original-patch-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
index 13ed57fd0866f3e31cf6bbfb94260de5f9f3dd4b..d93daffeb750baff823cfe8323cc9032602ac5a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1023,6 +1023,7 @@ ifeq ($(uname_S),Darwin)
                endif
        endif
        ifndef NO_APPLE_COMMON_CRYPTO
+               NO_OPENSSL = YesPlease
                APPLE_COMMON_CRYPTO = YesPlease
                COMPAT_CFLAGS += -DAPPLE_COMMON_CRYPTO
        endif