From e306691b7b75076bf1811a89887dd28863646350 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 29 May 2023 11:20:11 +0100 Subject: [PATCH] Fix client build options --- client/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/Makefile b/client/Makefile index 17cb8821..1a1c78b5 100644 --- a/client/Makefile +++ b/client/Makefile @@ -13,6 +13,17 @@ LDFLAGS+= LDADD+=-lcjson ${SHARED_DEP} STATIC_LDADD+=-lcjson +ifeq ($(WITH_SOCKS),yes) + CPPFLAGS+=-DWITH_SOCKS +endif + +ifeq ($(WITH_THREADING),yes) + CFLAGS+=-pthread + CPPFLAGS+=-DWITH_THREADING + LDFLAGS+=-pthread + STATIC_LDLADD+=-pthread +endif + ifeq ($(WITH_TLS),yes) LDADD+=-lssl -lcrypto STATIC_LDADD+= -lssl -lcrypto