@matheusbsbs / matheus-bagliano / commits / 401857c4c6
Fork 0

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>

Diego Elio Pettenò committed Nov 24, 2010 at 21:03 UTC 401857c4c641a73e7fb78d26a9c2ad6eb316b739
1 file changed +1 -1
Makefile
+1 -1
@@ -1921,7 +1921,7 @@ git-%$X: %.o $(GITLIBS)
1921
1922 git-imap-send$X: imap-send.o $(GITLIBS)
1923 $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
1924 - $(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL)
1924 + $(LIBS) $(OPENSSL_LINK) $(OPENSSL_LIBSSL) $(LIB_4_CRYPTO)
1925
1926 git-http-fetch$X: revision.o http.o http-walker.o http-fetch.o $(GITLIBS)
1927 $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \