Dominique Martinet wrote:
Karel Zak wrote on Wed, Aug 01, 2018 at 01:17:29PM +0200:
> Well, --as-needed is workaround and nothing else. The real problem is
> mess in makefiles and .pc (pkg-config) files.
> It would be better to use --as-needed for testing purpose only, and
> ask maintainers why the result with --as-needed is different.
Wearing a lib developer hat, I don't see how you can make a .pc that
doesn't overlink if you provide something a bit entangled with other
The problem is that if your headers use any sub-lib type you need to add
that lib in Requires: so that --cflags will pull that lib's include
That's what Requires.private is for