[dpdk-dev] [PATCH 6/7] build/pkg-config: improve static linking flags
Luca Boccassi
bluca at debian.org
Wed Apr 29 13:10:29 CEST 2020
On Wed, 2020-04-29 at 11:58 +0100, Bruce Richardson wrote:
> 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
Yeah that's fair, an issue to put in the radar is fine, and if anyone
has time to implement it then we can remove the workarounds in the
future
--
Kind regards,
Luca Boccassi
More information about the dev
mailing list