BUILD: opentracing: display warning in case of using OT_USE_VARS at compile time

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.
This commit is contained in:
Miroslav Zagorac 2021-12-27 12:44:07 +01:00 committed by William Lallemand
parent 2ef4c7c843
commit 6c9f7faa62

View 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