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,"