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