summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-12-14 07:50:20 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-14 07:50:20 -0800
commit40d675f417f7b0be7b9367752701bf6bc03db091 (patch)
tree1b69be96d7c41f361d684f9f8eefa6fdae7f95ea /Makefile
parentMerge branch 'ja/maint-pull-rebase-doc' into maint (diff)
parentDo not link with -lcrypto under NO_OPENSSL (diff)
downloadtgif-40d675f417f7b0be7b9367752701bf6bc03db091.tar.xz
Merge branch 'jc/maint-no-openssl-build-fix' into maint
* jc/maint-no-openssl-build-fix: Do not link with -lcrypto under NO_OPENSSL
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f2de401e29..ecb4e64435 100644
--- a/Makefile
+++ b/Makefile
@@ -1262,11 +1262,15 @@ else
BLK_SHA1 = 1
OPENSSL_LIBSSL =
endif
+ifdef NO_OPENSSL
+ LIB_4_CRYPTO =
+else
ifdef NEEDS_SSL_WITH_CRYPTO
LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto -lssl
else
LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto
endif
+endif
ifdef NEEDS_LIBICONV
ifdef ICONVDIR
BASIC_CFLAGS += -I$(ICONVDIR)/include