BUILD: makefile: add a function to collect all options' CFLAGS/LDFLAGS
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2022 18:44:35 +0000 (19:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commit8fa2f49f244c37960f0ebd5fb0b9518e4dd91f0a
tree61624954633b24f6b3641e45d357cabaa76887e7
parentb14e89e32288768b2cb601304c22e0652f93663e
BUILD: makefile: add a function to collect all options' CFLAGS/LDFLAGS

The new function collect_opts_flags now scans all USE_* options defined
in use_opts and appends the corresponding *_CFLAGS and *_LDFLAGS to
OPTIONS_{C,LD}FLAGS respectively. This will be useful to get rid of all
the individual concatenations to these variables.
include/make/options.mk