Skip to content

Commit 5b02b9b

Browse files
committed
Do not link with -lcrypto under NO_OPENSSL
With 401857c (imap-send: link against libcrypto for HMAC and others, 2010-11-24) we started linking imap-send unconditionally with -lcrypto by mistake; disable this when we are building under NO_OPENSSL. Signed-off-by: Junio C Hamano <[email protected]>
1 parent f34e9ed commit 5b02b9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,11 +1262,15 @@ else
12621262
BLK_SHA1 = 1
12631263
OPENSSL_LIBSSL =
12641264
endif
1265+
ifdef NO_OPENSSL
1266+
LIB_4_CRYPTO =
1267+
else
12651268
ifdef NEEDS_SSL_WITH_CRYPTO
12661269
LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto -lssl
12671270
else
12681271
LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto
12691272
endif
1273+
endif
12701274
ifdef NEEDS_LIBICONV
12711275
ifdef ICONVDIR
12721276
BASIC_CFLAGS += -I$(ICONVDIR)/include

0 commit comments

Comments
 (0)