Similar to libxcb and it's modules we do not need to have libraries in the Requires field in the pkg-config file. We will be able to retain the explicit x11/xcb header inclusion from the x11-xcb ones and satisfy all the build-time dependencies, while avoiding over-linking and other potential runtime issues.
Cc: Keith Packard <[email protected]> Cc: Alan Coopersmith <[email protected]> References: http://people.freedesktop.org/~dbn/pkg-config-guide.html#faq References: https://wiki.mageia.org/en/Overlinking_issues_in_packaging References: http://err.no/personal/blog/2008/Mar/25 Signed-off-by: Emil Velikov <[email protected]> --- Please keep me Cc'd as I'm not subscribed to the list. -Emil x11-xcb.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11-xcb.pc.in b/x11-xcb.pc.in index 315a9d1..195f470 100644 --- a/x11-xcb.pc.in +++ b/x11-xcb.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: X11 XCB Description: X Library XCB interface Version: @PACKAGE_VERSION@ -Requires: x11 xcb +Requires.private: x11 xcb Cflags: -I${includedir} Libs: -L${libdir} -lX11-xcb -- 2.0.2 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
