Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit ae3a6dd

Browse files
committed
Fixed an issue with example/Makefile on MacOS
1 parent 6d963fb commit ae3a6dd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

example/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ OPENSSL_DIR = $(PREFIX)/opt/[email protected]
88
#OPENSSL_DIR = $(PREFIX)/opt/openssl@3
99
OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto
1010

11+
ifneq ($(OS), Windows_NT)
12+
UNAME_S := $(shell uname -s)
13+
ifeq ($(UNAME_S), Darwin)
14+
OPENSSL_SUPPORT += -framework CoreFoundation -framework Security
15+
endif
16+
endif
17+
1118
ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz
1219

1320
BROTLI_DIR = $(PREFIX)/opt/brotli
1421
BROTLI_SUPPORT = -DCPPHTTPLIB_BROTLI_SUPPORT -I$(BROTLI_DIR)/include -L$(BROTLI_DIR)/lib -lbrotlicommon -lbrotlienc -lbrotlidec
1522

16-
all: server client hello simplecli simplesvr upload redirect ssesvr ssecli benchmark
23+
all: server client hello simplecli simplesvr upload redirect ssesvr ssecli benchmark issue
1724

1825
server : server.cc ../httplib.h Makefile
1926
$(CXX) -o server $(CXXFLAGS) server.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)

0 commit comments

Comments
 (0)