Skip to content

Commit c984938

Browse files
Benabikgitster
authored andcommitted
Makefile: Fix APPLE_COMMON_CRYPTO with BLK_SHA1
It used to be that APPLE_COMMON_CRYPTO did nothing when BLK_SHA1 was set. But APPLE_COMMON_CRYPTO is now used for more than just SHA1 (see 3ef2bca) so make sure that the appropriate libraries are always set. Signed-off-by: Brian Gernhardt <[email protected]> Reviewed-by: Jeremy Huddleston Sequoia <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ef2bca commit c984938

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,9 @@ ifdef NEEDS_SSL_WITH_CRYPTO
11671167
else
11681168
LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto
11691169
endif
1170+
ifdef APPLE_COMMON_CRYPTO
1171+
LIB_4_CRYPTO += -framework Security -framework CoreFoundation
1172+
endif
11701173
endif
11711174
ifdef NEEDS_LIBICONV
11721175
ifdef ICONVDIR
@@ -1398,7 +1401,6 @@ ifdef PPC_SHA1
13981401
LIB_H += ppc/sha1.h
13991402
else
14001403
ifdef APPLE_COMMON_CRYPTO
1401-
LIB_4_CRYPTO += -framework Security -framework CoreFoundation
14021404
COMPAT_CFLAGS += -DCOMMON_DIGEST_FOR_OPENSSL
14031405
SHA1_HEADER = <CommonCrypto/CommonDigest.h>
14041406
else

0 commit comments

Comments
 (0)