Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] socklen_t needs to be defined and libssl to be linked on old Mac OS X
[gitweb.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index f50ad72399ea41aa34c88611166992df445e5d7c..f580576b24ba5ff3abbc9ff512cf78db97ab5bc0 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-95,9
+95,13
@@
ifdef PPC_SHA1
LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
else
SHA1_HEADER=<openssl/sha.h>
+ifeq ($(shell uname -s),Darwin)
+ LIBS += -lcrypto -lssl
+else
LIBS += -lcrypto
endif
endif
+endif
CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)'