aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f50ad7239..f580576b2 100644
--- 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)'