Skip to content

Commit

Permalink
try to wrangle libtls stuff on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
voutilad committed Nov 30, 2023
1 parent 299e4f2 commit fe10fea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fe10fea

Please sign in to comment.