BUILD: da: extends CFLAGS to support API v3 from 3.1.7 and onwards.
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.
(cherry picked from commit cec3baa4fad82694edc255183872d2e02cfdaab3)
[cf: DEVICEATLAS_CFLAGS does not exist. OPTIONS_CFLAGS is change instead]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6282c236991e37e482635723e6926ef33a6b4c68)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 149ed6c5a377f00dd17cd3781a56a6c64bf5a8ad)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d8bfb56a5291baa582d9eebbe933800e77029bcd)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/Makefile b/Makefile
index 40c2b10..05067bc 100644
--- a/Makefile
+++ b/Makefile
@@ -675,7 +675,7 @@
OPTIONS_OBJS += $(DEVICEATLAS_LIB)/dac.o
endif
OPTIONS_OBJS += addons/deviceatlas/da.o
-OPTIONS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC))
+OPTIONS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC)) $(if $(DEVICEATLAS_SRC),-DDATLAS_DA_NOCACHE)
endif
ifneq ($(USE_51DEGREES),)