]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: warn about unknown USE_* variables
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 06:27:18 +0000 (08:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 09:06:19 +0000 (11:06 +0200)
commitaa32ab13f0cc9237734c502235f000e36a594003
treefa47ca9e28fd58ef3c6065bf82e8db1a74855be7
parent1fa6eb2eb9fa3300d564faae7d1a6d4e7ad49389
BUILD: makefile: warn about unknown USE_* variables

William suggested that it would be nice to warn about unknown USE_*
variables to more easily catch misspelled ones. The valid ones are
present in use_opts, so by appending "=%" to each of them, we can
build a series of patterns to exclude from MAKEOVERRIDES and emit
a warning for the ones that stand out.

Example:

  $ make TARGET=linux-glibc  USE_QUIC_COMPAT_OPENSSL=1
  Makefile:338: Warning: ignoring unknown build option: USE_QUIC_COMPAT_OPENSSL=1
    CC      src/slz.o
Makefile
include/make/options.mk