]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: deviceatlas: remove unneeded depenency on libcurl / libzip
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Jan 2024 18:36:11 +0000 (19:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Jan 2024 18:36:11 +0000 (19:36 +0100)
These were previously used for the "dadwsch" utility that's no longer
part of the addon, so we should not move the CFLAGS/LDFLAGS to the
global ones as this adds an undesired dependency on the libcurl and
libzip libs.

No backport is needed.

addons/deviceatlas/Makefile.inc

index 63719bf506a1e897941a33e739aedab05b4c81a3..8b29559f2255056ecd8bf91c97f58ec921407353 100644 (file)
@@ -4,19 +4,12 @@
 CXX             := c++
 CXXLIB          := -lstdc++
 
-CURL_CONFIG     := curl-config
-CURLDIR         := $(shell $(CURL_CONFIG) --prefix 2>/dev/null || echo /usr/local)
-CURL_INC        := $(CURLDIR)/include
-CURL_LIB        := $(CURLDIR)/lib
-CURL_LDFLAGS    := $(shell $(CURL_CONFIG) --libs 2>/dev/null || echo -L /usr/local/lib -lcurl)
-
 ifeq ($(DEVICEATLAS_SRC),)
 OPTIONS_LDFLAGS         += -lda
 else
 DEVICEATLAS_INC = $(DEVICEATLAS_SRC)
 DEVICEATLAS_LIB = $(DEVICEATLAS_SRC)
-OPTIONS_LDFLAGS += $(CURL_LDFLAGS) -lz -lzip -lpthread
-OPTIONS_CFLAGS  += -DDATLAS_CURL -DDATLAS_CURLSSET -DDATLAS_GZ -DDATLAS_ZIP
+OPTIONS_LDFLAGS += -lpthread
 OPTIONS_CFLAGS  += -I$(DEVICEATLAS_INC) -I$(CURL_INC)
 ifeq ($(DEVICEATLAS_NOCACHE),)
 CXXFLAGS        := $(OPTIONS_CFLAGS) -std=gnu++11