Link with -lcrypto instead of -lssl when using openssl libraries.
authorJunio C Hamano <junkio@cox.net>
Tue, 10 May 2005 20:25:27 +0000 (13:25 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 10 May 2005 20:25:27 +0000 (13:25 -0700)
Mark Allen had trouble with building GIT on his Darwin and
posted a patch to link with -lcrypto instead of -lssl on Darwin.
Later Daniel Barkalow suggested to change it for everybody who
uses openssl, because the relevant functionality is in -lcrypto
not in -lssl, and the current linking happens to work only
because -lssl pulls in -lcrypto.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile

index 5c078f907aaecab48703bd1f86800b11785b0fb6..6afcb3e867a6857f9128dba877e433c12366c1f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ ifdef PPC_SHA1
   LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
 else
   SHA1_HEADER=<openssl/sha.h>
-  LIBS += -lssl
+  LIBS += -lcrypto
 endif
 endif