On Tue, Sep 23, 2025 at 2:15 PM Jacob Champion
<jacob.champion@enterprisedb.com> wrote:
> > That would be in Cflags.private.
>
> Yes.
The FAQ you cite says
> In either case, pkg-config will output the [private dependency's] compiler flags when --static is used or not.
which seems awfully counterproductive, and was apparently
controversial when it was proposed in 2005 [1, 2]. This is why --libs
works and --cflags doesn't. Now that pkg-config's successor supports
Cflags.private, I wonder if there's room to fix these
mutually-conflicting use cases...
--Jacob
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340904#10
[2] https://bugzilla.gnome.org/show_bug.cgi?id=322240