Make Requires private in pkg-config files
authorAndreas Henriksson <andreas@fatal.se>
Fri, 21 Sep 2012 12:12:37 +0000 (14:12 +0200)
committerJens Georg <mail@jensge.org>
Sat, 6 Oct 2012 11:02:15 +0000 (13:02 +0200)
Putting stuff in Requires means applications using
this library will link against that when it might
not be needed at all because they use none of that
libraries symbols directly.

If only the cflags is needed (because public headers
includes headers from that package) they
can be private to avoid uselessly linking.

See #2 in http://people.freedesktop.org/~dbn/pkg-config-guide.html#faq

https://bugzilla.gnome.org/show_bug.cgi?id=685477

gssdp-1.0-uninstalled.pc.in
gssdp-1.0.pc.in

index dbc9d67..445e251 100644 (file)
@@ -8,4 +8,4 @@ Description: GObject-based SSDP library
 Version: @VERSION@
 Libs: ${libdir}/libgssdp-1.0.la
 Cflags: -I${includedir}
-Requires: gobject-2.0 gio-2.0
+Requires.private: gobject-2.0 gio-2.0
index e57a7b6..4c320f6 100644 (file)
@@ -8,4 +8,4 @@ Description: GObject-based SSDP library
 Version: @VERSION@
 Libs: -L${libdir} -lgssdp-1.0
 Cflags: -I${includedir}/gssdp-1.0
-Requires: gobject-2.0 gio-2.0
+Requires.private: gobject-2.0 gio-2.0