From: Andreas Henriksson Date: Fri, 21 Sep 2012 12:12:37 +0000 (+0200) Subject: Make Requires private in pkg-config files X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39a6946d080cf7da2ed2a7b7b29a4995b4edc4e7;p=profile%2Fivi%2FGSSDP.git Make Requires private in pkg-config files 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 --- diff --git a/gssdp-1.0-uninstalled.pc.in b/gssdp-1.0-uninstalled.pc.in index dbc9d67..445e251 100644 --- a/gssdp-1.0-uninstalled.pc.in +++ b/gssdp-1.0-uninstalled.pc.in @@ -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 diff --git a/gssdp-1.0.pc.in b/gssdp-1.0.pc.in index e57a7b6..4c320f6 100644 --- a/gssdp-1.0.pc.in +++ b/gssdp-1.0.pc.in @@ -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