]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: da: extends CFLAGS to support API v3 from 3.1.7 and onwards.
authorDavid Carlier <dcarlier@deviceatlas.com>
Tue, 28 Mar 2023 05:24:49 +0000 (06:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Mar 2023 06:40:34 +0000 (08:40 +0200)
Minor build update to still both support the v2 and v3 api from
the 3.1.7 release which supports a cache but would need a shift
in the HAProxy build not necessary at the moment.
In the second half of the year and for the next major HAProxy release
branch, v2 could be dropped altogether thus the next HAProxy 2.9
major release will contain more changes towards the v3 support
and reminder for the v2 EOL.

To be backported.

Makefile

index d99cf78d788124d39885b450be5395504cc8df66..b5d160251c86961173f9d10d0837886ede909e9a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -670,7 +670,7 @@ ifneq ($(USE_DEVICEATLAS),)
     OPTIONS_OBJS += $(DEVICEATLAS_LIB)/dac.o
   endif
   OPTIONS_OBJS += addons/deviceatlas/da.o
-  DEVICEATLAS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC))
+  DEVICEATLAS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC)) $(if $(DEVICEATLAS_SRC),-DDATLAS_DA_NOCACHE)
 endif
 
 # Use 51DEGREES_SRC and possibly 51DEGREES_INC and 51DEGREES_LIB to force path