From 7e2ea506d2da0072d0d9429921c759c30be7fd72 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 29 Jul 2026 10:27:25 +0200 Subject: [PATCH] add libcurl flags --- Makefile | 4 +++- config.mk.in | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 51e3a84..29836eb 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ include config.mk CFLAGS += -Wall -DNS_ENABLE_IPV6 LIBS = $(MORELIBS) -LIBS += -lcurl TARGETS= OTR_OBJS = json.o \ @@ -26,6 +25,9 @@ LIBS += $(LMDB_LIBS) CFLAGS += $(LIBCONFIG_CFLAGS) LIBS += $(LIBCONFIG_LIBS) +CFLAGS += $(LIBCURL_CFLAGS) +LIBS += $(LIBCURL_LIBS) + LIBS += -lpthread define CPP_CONDITION diff --git a/config.mk.in b/config.mk.in index a20a175..a26b64d 100644 --- a/config.mk.in +++ b/config.mk.in @@ -122,3 +122,6 @@ LMDB_LIBS = `$(PKG_CONFIG) --libs lmdb` LIBCONFIG_CFLAGS = `$(PKG_CONFIG) --cflags libconfig` LIBCONFIG_LIBS = `$(PKG_CONFIG) --libs libconfig` + +LIBCURL_CFLAGS = `$(PKG_CONFIG) --cflags libcurl` +LIBCURL_LIBS = `$(PKG_CONFIG) --libs libcurl`