From fe10fead957da62f395a2cd2d79cd283dd5881d3 Mon Sep 17 00:00:00 2001 From: Dave Voutila Date: Thu, 30 Nov 2023 12:53:53 -0500 Subject: [PATCH] try to wrangle libtls stuff on macOS --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e0a0c8b..467a95f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ -CFLAGS += -O2 -Wall -Werror -Wno-padded -Wno-format-nonliteral +CFLAGS_TLS != if [ `uname` = "Darwin" ]; then \ + pkg-config --cflags libtls ;\ + fi +CFLAGS += -O2 -Wall -Werror -Wno-padded -Wno-format-nonliteral $(CFLAGS_TLS) LDFLAGS != if [ X"$(OS)" = X"Windows_NT" ]; then \ echo ${LDFLAGS} -llibretls -lws2_32 ; \ + elif [ `uname` = "Darwin" ]; then \ + pkg-config --libs libtls ; \ else \ echo ${LDFLAGS} -ltls ;\ fi