BUILD: opentracing: display warning in case of using OT_USE_VARS at compile time
authorMiroslav Zagorac <mzagorac@haproxy.com>
Mon, 27 Dec 2021 11:44:07 +0000 (12:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Dec 2021 09:50:42 +0000 (10:50 +0100)
Please do not set the OT_USE_VARS configuration variable, as the source
will probably not be able to compile!  For now, this variable can only
be used for experimental purposes, and is not intended for wider use.

For further clarification, please see commit 4cb2c83f4.

Must be backported to 2.5.

(cherry picked from commit 6c9f7faa62a00a4d028704d7b11e290c83f8a49d)
Signed-off-by: Willy Tarreau <w@1wt.eu>

addons/ot/Makefile

index 0cc8c6a..c7b0f8d 100644 (file)
@@ -65,6 +65,8 @@ OPTIONS_OBJS += \
        addons/ot/src/util.o
 
 ifneq ($(OT_USE_VARS),)
+$(warning Please do not set the OT_USE_VARS configuration variable, as the source will probably not be able to compile!  For now, this variable can only be used for experimental purposes, and is not intended for wider use.)
+
 OT_DEFINE     = -DUSE_OT_VARS
 OPTIONS_OBJS += \
        addons/ot/src/vars.o