From 1e1efec34ad820fc65dcf98581a0d8f6fa1873a8 Mon Sep 17 00:00:00 2001 From: Yuri Date: Sun, 2 Apr 2017 22:57:40 -0700 Subject: pkg-config .pc files: added .private versions of Libs and Required To prevent top-level linking of all libraries. Problem: ```pkg-config --libs toxcore``` returns all libraries that are required by all libtox*.so libraries. This is wrong because for a dynamically linked executable only top-level libraries need to be supplied. ```pkg-config --libs --static toxcore``` should return all libraries for the statically linked executable. For example, the ToxBot https://github.com/JFreegman/ToxBot executable uses pkg-config and is linked with the opus library, which is wrong. Based on #533. --- other/pkgconfig/toxcore.pc.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'other') diff --git a/other/pkgconfig/toxcore.pc.in b/other/pkgconfig/toxcore.pc.in index 72fe00cf..55b3b10a 100644 --- a/other/pkgconfig/toxcore.pc.in +++ b/other/pkgconfig/toxcore.pc.in @@ -4,7 +4,8 @@ includedir=${prefix}/include Name: toxcore Description: Tox protocol library -Requires: @toxcore_PKGCONFIG_REQUIRES@ +Requires.private: @toxcore_PKGCONFIG_REQUIRES@ Version: @PROJECT_VERSION@ -Libs: -L${libdir} -ltoxcore @toxcore_PKGCONFIG_LIBS@ +Libs: -L${libdir} -ltoxcore +Libs.private: @toxcore_PKGCONFIG_LIBS@ Cflags: -I${includedir} -- cgit v1.2.3