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

Bruce Richardson bruce.richardson at intel.com
Wed Apr 29 12:58:10 CEST 2020


On Wed, Apr 29, 2020 at 11:37:02AM +0100, Luca Boccassi wrote:
> 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?
>
Yes, I can do so.

I didn't look to implement this in meson myself because it would take so
long to get into a version that we would use as our minimum version. :-(

/Bruce


More information about the dev mailing list