From 382d306d6c44a9ece5551c210a932773b5cb94a5 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 5 Sep 2014 01:46:40 +0100 Subject: Move internal/private dependencies to Requires.private Program using the xcb sub-modules has indirect compile and runtime dependency of core xcb. To ensure this out we currently list xcb in the Requires field of the pkg-config files. While this provides all the required dependencies for successful compilation this causes over-linking and hides potential linking miss-use against the xcb modules. By moving to Requires.private we retain the compilation and runtime compatibility and avoids any runtime problems. Cc: Keith Packard Cc: Alan Coopersmith 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 Reviewed-by: Julien Cristau Signed-off-by: Uli Schlachter --- xcb-xf86dri.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xcb-xf86dri.pc.in') diff --git a/xcb-xf86dri.pc.in b/xcb-xf86dri.pc.in index f3f2980..87c93d5 100644 --- a/xcb-xf86dri.pc.in +++ b/xcb-xf86dri.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: XCB XFree86-DRI Description: XCB XFree86-DRI Extension Version: @PACKAGE_VERSION@ -Requires: xcb +Requires.private: xcb Libs: -L${libdir} -lxcb-xf86dri Cflags: -I${includedir} -- cgit v1.2.3