From 0298f4cfc8c54068e9611471727e14b6390bbcc9 Mon Sep 17 00:00:00 2001 From: Marton Bak Date: Tue, 18 Jul 2023 09:56:50 +0200 Subject: [PATCH] Fixed libssl linking for OSX --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6c98d31..8ad6eca 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,14 @@ OS := $(shell uname | tr '/[[:lower:]]' '_[[:upper:]]') # These are the specifications of the toolchain CC := gcc CFLAGS := -std=c89 -g -oS -Wall -Werror -Wno-deprecated -CPPFLAGS := -D_DEFAULT_SOURCE -D$(OS) $(WHIRLPOOL) ifeq ($(OS),DARWIN) - LDFLAGS := -lssl -lcrypto -L/usr/local/opt/openssl/lib/ + CPPFLAGS := -D_DEFAULT_SOURCE -D$(OS) $(WHIRLPOOL) -I/opt/homebrew/opt/openssl/include +else + CPPFLAGS := -D_DEFAULT_SOURCE -D$(OS) $(WHIRLPOOL) +endif + +ifeq ($(OS),DARWIN) + LDFLAGS := -lssl -lcrypto -L/opt/homebrew/opt/openssl/lib else LDFLAGS := -lssl -lcrypto endif