summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2010-11-24 20:03:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-24 20:23:48 (GMT)
commit401857c4c641a73e7fb78d26a9c2ad6eb316b739 (patch)
tree1f5b5b96539d59d63c19e9202480ab4eeaf39c70 /Makefile
parent83acaaec12fcf33e605f441216ecc91c81b90449 (diff)
downloadgit-401857c4c641a73e7fb78d26a9c2ad6eb316b739.zip
git-401857c4c641a73e7fb78d26a9c2ad6eb316b739.tar.gz
git-401857c4c641a73e7fb78d26a9c2ad6eb316b739.tar.bz2
imap-send: link against libcrypto for HMAC and others
When using stricter linkers, such as GNU gold or Darwin ld, transitive dependencies are not counted towards symbol resolution. If we don't link imap-send to libcrypto, we'll have undefined references to the HMAC_*, EVP_* and ERR_* functions families. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d3dcfb1..cd98c59 100644
--- a/Makefile
+++ b/Makefile
@@ -1921,7 +1921,7 @@ git-%$X: %.o $(GITLIBS)
git-imap-send$X: imap-send.o $(GITLIBS)
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
- $(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL)
+ $(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL) $(LIB_4_CRYPTO)
git-http-fetch$X: revision.o http.o http-walker.o http-fetch.o $(GITLIBS)
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \