]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: support PCRE[2]_CFLAGS and PCRE[2]_LDFLAGS
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2022 16:24:38 +0000 (17:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commit6985e2a9a6f7fb08b7b124f66ca889a0fde8f60f
treed66f7c37518bc5038448ccab75e08817903e1f1f
parent202295436c1ba7f49873721c6b448e3aada08272
BUILD: makefile: support PCRE[2]_CFLAGS and PCRE[2]_LDFLAGS

The CFLAGS and LDFLAGS appended by USE_PCRE/USE_PCRE2 can now be
overridden using PCRE_CFLAGS/PCRE2_CFLAGS and PCRE_LDFLAGS/PCRE2_LDFLAGS.

Its worth noting that PCRE2_LDFLAGS did already exist and was preset from
the pkgconfig output then complemented with -lpcre2-posix, and only then
the -L and optional -Wl,-Bstatic were appended when adding them to the
resulting global LDFLAGS. A search on the net did not reveal any use of
PCRE2_LDFLAGS in any public build scripts, and for consistency sake it's
important to make sure that we can now finally override the -L settings
like we're able to do with every other build option. Thus the meaning of
this variable changed to include all the related ldflags (-L and -Wl).

These flags are now automatically collected into OPTIONS_*.
Makefile