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

Bruce Richardson bruce.richardson at intel.com
Wed Apr 29 12:56:21 CEST 2020


On Wed, Apr 29, 2020 at 12:32:51PM +0200, Thomas Monjalon wrote:
> 29/04/2020 12:08, Bruce Richardson:
> > 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.
> 
> It looks to be the same workaround I did for ibverbs static linkage :)
> 	sed -r "/^-l($deps)/! s,(^-l)(.*),\1:lib\2.a,"
> 
Are you implying that I normally learn nothing from your patches? :-)


More information about the dev mailing list