summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authorYuri <yuri@tsoft.com>2017-04-02 22:57:40 -0700
committeriphydf <iphydf@users.noreply.github.com>2018-01-13 23:04:23 +0000
commit1e1efec34ad820fc65dcf98581a0d8f6fa1873a8 (patch)
tree7c598c2c92f7d545319e371166e7efe2c7fffc93 /other
parentf4ba43c81b28c23d86168a1ae1be8551d5258e80 (diff)
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.
Diffstat (limited to 'other')
-rw-r--r--other/pkgconfig/toxcore.pc.in5
1 files changed, 3 insertions, 2 deletions
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
4 4
5Name: toxcore 5Name: toxcore
6Description: Tox protocol library 6Description: Tox protocol library
7Requires: @toxcore_PKGCONFIG_REQUIRES@ 7Requires.private: @toxcore_PKGCONFIG_REQUIRES@
8Version: @PROJECT_VERSION@ 8Version: @PROJECT_VERSION@
9Libs: -L${libdir} -ltoxcore @toxcore_PKGCONFIG_LIBS@ 9Libs: -L${libdir} -ltoxcore
10Libs.private: @toxcore_PKGCONFIG_LIBS@
10Cflags: -I${includedir} 11Cflags: -I${includedir}