29/04/2020 12:56, Bruce Richardson: > 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? :-)
I'm happy it helped the general case :-)