[dpdk-dev] [PATCH 6/7] build/pkg-config: improve static linking flags

Luca Boccassi bluca at debian.org
Wed Apr 29 12:37:02 CEST 2020


On Wed, 2020-04-29 at 11:08 +0100, Bruce Richardson wrote:
> Rather than setting -Bstatic in the linker flags when doing a static link,
> and then having to explicitly set -Bdynamic again afterwards, we can update
> the pkg-config file to use -l:libfoo.a syntax to explicitly refer to the
> static library in question. Since this syntax is not supported by meson's
> pkg-config module directly, we can post-process the .pc files instead to
> adjust them.
> 
> Once done, we can simplify the examples' makefiles and the docs by removing
> the explicit static flag

This sounds like a worthwhile feature request for Meson to me. Would
you be up for opening an RFE on their issue tracker explaining the use
case, please?

-- 
Kind regards,
Luca Boccassi


More information about the dev mailing list