Incorrect pkg-config files causes useless linking in applications
@andhe
Submitted by Andreas Henriksson Assigned to GUPnP Maintainers
Link to original bug (#685477)
Description
All pkg-config files in the gupnp stack (gssdp, gupnp, gupnp-av, ...) are flawed in two ways.
- Requires.Private is not parsed at all by pkg-config (c.f. Requires.private)
- When exposing used libraries types in public headers, they should be in Requires.private (to be included in pkg-config --cflags libfoo, but not pkg-config --libs libfoo)
I guess the first mistake lead up to putting everything in Requires rather then Requires.private in the pkg-config files.
(For reference on 2, see the faq #2 (moved) in "Guide to pkg-config")