]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: ensure that all USE_* handlers appear before CFLAGS are used
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2022 16:58:24 +0000 (17:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commitbc2f3934f9799493b634274bd5416a1136669d7b
tree9f2da7a7910211ad3de5caee749e8d976842d0fc
parentea3e67f8918299451cc25698dfcd411c05d8a4ef
BUILD: makefile: ensure that all USE_* handlers appear before CFLAGS are used

It happens that a few "if USE_foo" were placed too low in the makefile,
and would mostly work by luck thanks to not using variables that were
already referenced before. The opentracing include is even trickier
because it extends OPTIONS_CFLAGS that was last read a few lines before
being included, but it only works because COPTS is defined as a macro and
not a variable, so it will be evaluated later. At least now it doesn't
touch OPTIONS_* anymore and since it's cleanly arranged, it will work by
default via the flags collector.

Let's just move these late USE_* handlers upper and place a visible
delimiter after them reminding not to add any after.
Makefile
addons/ot/Makefile