]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: properly report USE_PCRE/USE_PCRE2 in features
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2022 16:27:46 +0000 (17:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commit8ea58f5c768b5afc54307bbf0f34d25010427e60
treee05717c179019b5521d26ee570d701c0e6fa27f8
parentf297b18eac213139b26ab7bc749a80e6d0781624
BUILD: makefile: properly report USE_PCRE/USE_PCRE2 in features

The PCRE/PCRE2 CFLAGS forcefully add -DUSE_PCRE or -DUSE_PCRE2 because
we want that USE_STATIC_PCRE or USE_PCRE_JIT implicitly enables them.
However, doing it this way is incorrect because the option is not visible
in BUILD_FEATURES, and for example, some regtests depending on such
features (such as map_redirect.vtc) would be skipped if only the static
or jit versions are enabled.

The correct way to do this is to always set USE_PCRE feature for such
variants instead of adding the define.

This could almost be backported but would require to backport other
makefile patches and likely only has effects on the reg-tests at the
moment, so it's probably not worth the hassle.
Makefile