]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: support USE_xxx=0 as well
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 08:41:39 +0000 (10:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 09:06:19 +0000 (11:06 +0200)
commitd78c346670529556433fa09494dd546360f95b62
tree41108f4ffe35543deaaa46bad60dcd08b98300a2
parentaa32ab13f0cc9237734c502235f000e36a594003
BUILD: makefile: support USE_xxx=0 as well

William rightfully reported that not supporting =0 to disable a USE_xxx
option is sometimes painful (e.g. a script might do USE_xxx=$(command)).
It's not that difficult to handle actually, we just need to consider the
value 0 as empty at the few places that test for an empty string in
options.mk, and in each "ifneq" test in the main Makefile, so let's do
that. We even take care of preserving the original value in the build
options string so that building with USE_OPENSSL=0 will be reported
as-is in haproxy -vv, and with "-OPENSSL" in the feature list.
INSTALL
Makefile
include/make/options.mk