diff --git a/Makefile b/Makefile index f50ad72399..f580576b24 100644 --- a/Makefile +++ b/Makefile @@ -95,9 +95,13 @@ ifdef PPC_SHA1 LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o else SHA1_HEADER= +ifeq ($(shell uname -s),Darwin) + LIBS += -lcrypto -lssl +else LIBS += -lcrypto endif endif +endif CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)'