summaryrefslogtreecommitdiff
path: root/libgit2.pc.in
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-23 12:58:56 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-23 13:46:31 +0200
commit1ecda61ec570873dd72fd129cd1bfe6a08d5a81a (patch)
treec4c568abdc2a71a424dd21bb498c82a2993a8b70 /libgit2.pc.in
parent98fec8a937b93c6a6a0ad35ccd04af4cfeae1767 (diff)
downloadlibgit2-1ecda61ec570873dd72fd129cd1bfe6a08d5a81a.tar.gz
Set the correct dependencies in the pkg-config file
When linking statically, the including project needs to know what the current library build depends on so they can link to it. Store this information in the pkg-config file. While here, remove claims that users need to link to zlib or libcrypto.
Diffstat (limited to 'libgit2.pc.in')
-rw-r--r--libgit2.pc.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgit2.pc.in b/libgit2.pc.in
index 52ad901f7..8f5279234 100644
--- a/libgit2.pc.in
+++ b/libgit2.pc.in
@@ -4,6 +4,7 @@ includedir=@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
Name: libgit2
Description: The git library, take 2
Version: @LIBGIT2_VERSION_STRING@
-Requires: libcrypto
-Libs: -L${libdir} -lgit2 -lz -lcrypto
+Requires.private: @LIBGIT2_PC_REQUIRES@
+Libs.private: @LIBGIT2_PC_LIBS@
+Libs: -L${libdir} -lgit2
Cflags: -I${includedir}