The real problem here is when you have complex frameworks like gtk.

pkg-config basically will link you against gdk, gdk-pixbuf, gtk and a lot of other stuff. But in practice, not every application need to link against all of them.

On Thu, Aug 2, 2018 at 6:11 PM Rex Dieter <> wrote:
Dominique Martinet wrote:

> In practice, `pkg-config --cflags foo` will only fetch cflags for
> dependencies listed in Requires, not Requires.private

pkg-config --cflags foo
fetches cflags of Requires.private items in foo.pc for me.

I've patched many packages to use that feature, and haven't noticed any
breakage (so far).

-- Rex
devel mailing list --
To unsubscribe send an email to
Fedora Code of Conduct:
List Guidelines:
List Archives:

-Igor Gnatenko