Description of problem: pkg-config --libs --static should take into account Requires.static recursively. For example if one have, in the .pc file Libs: -L${libdir} -ltests Requires.private: x11 One get: $ pkg-config --static --libs tests -ltests -lX11 -lpthread While, there is $ pkg-config --static --libs x11 -lX11 -lpthread -lXau -lXdmcp One should have $ pkg-config --static --libs tests -ltests -lX11 -lpthread -lXau -lXdmcp in the x11.pc there is Requires.private: xau xdmcp Libs.private: -lpthread so -lpthread is taken into account, while Requires.private are not taken into account. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
True, but do we want to encourage static linking by fixing this ?
It's the opposite, imo. dynamic linking is harmed/influenced by static-link-only bits in .pc files (without the patch)
oops, ignore me, brain still stuck on last bug submitted wrt pkg-config. (:
Seems to be reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=8788 with (unverified) patch.
Fixed in 0.21-5.fc7