diff options
author | Yuri <yuri@tsoft.com> | 2017-04-02 22:57:40 -0700 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-13 23:04:23 +0000 |
commit | 1e1efec34ad820fc65dcf98581a0d8f6fa1873a8 (patch) | |
tree | 7c598c2c92f7d545319e371166e7efe2c7fffc93 /other | |
parent | f4ba43c81b28c23d86168a1ae1be8551d5258e80 (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.in | 5 |
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 | ||
5 | Name: toxcore | 5 | Name: toxcore |
6 | Description: Tox protocol library | 6 | Description: Tox protocol library |
7 | Requires: @toxcore_PKGCONFIG_REQUIRES@ | 7 | Requires.private: @toxcore_PKGCONFIG_REQUIRES@ |
8 | Version: @PROJECT_VERSION@ | 8 | Version: @PROJECT_VERSION@ |
9 | Libs: -L${libdir} -ltoxcore @toxcore_PKGCONFIG_LIBS@ | 9 | Libs: -L${libdir} -ltoxcore |
10 | Libs.private: @toxcore_PKGCONFIG_LIBS@ | ||
10 | Cflags: -I${includedir} | 11 | Cflags: -I${includedir} |