summaryrefslogtreecommitdiff
path: root/libgit2.pc.in
Commit message (Collapse)AuthorAgeFilesLines
* Wrap path in quotes to support paths containing whitespace.Arthur Schreiber2016-01-091-1/+1
|
* pkg-config: fix directory references in libgit2.pcDominique Leuenberger2015-09-181-2/+3
| | | | | | | | | | | | Before: libdir=/usr//usr/lib64 includedir=/usr//usr/include After: libdir=/usr/lib64 includedir=/usr/include (note the duplication of /usr in the before case)
* pkg-config: Sort the different sectionsvmg/pkg-config-sortVicent Marti2015-06-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Because of the fact that pkg-config is pants-on-head retarded and that the Linux linker *requires* a static library to come before all its dynamic dependencies in the link path, calling `pkg-config --libs --static` was generating the wrong flags for linking. Before this patch: -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/local/lib -lcurl -lssh2 -lrt -lgit2 -lssl -lcrypto -ldl -lz After this patch: -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/local/lib -lgit2 -lcurl -lssh2 -lrt -lssl -lcrypto -ldl -lz By setting the "Libs" line before all other rules, we make sure that `-lgit2` is the first library in the link path and that it gets its symbols resolved with the libraries coming after it. This fix (ab)uses an implementation detail in `pkg-config` (namely, that flags are output as they are found on the file), but this detail seems to be stable between releases and always gives a stable output.
* Set the correct dependencies in the pkg-config fileCarlos Martín Nieto2013-10-231-2/+3
| | | | | | | | 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.
* Use standard CMake variable names for installation pathsVeeti Paananen2012-10-201-1/+1
| | | | | | | Rename INSTALL_INC and INSTALL_BIN to INCLUDE_INSTALL_DIR and BIN_INSTALL_DIR, which are more commonly used. This is also consistent with the variable for the library path which is already LIB_INSTALL_DIR.
* libgit2.pc.in: also switch to LIB_INSTALL_DIRMichael Schubert2012-07-161-1/+1
| | | | | | b3237ac3 changed CMakeList.txt to use the more standard LIB_INSTALL_DIR variable instead of INSTALL_LIB, but forgot to change libgit2.pc.in etc. accordingly.
* Create and install pkg-config fileCarlos Martín Nieto2011-08-071-5/+3
| | | | | | This hasn't been working since the switch away from waf. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add proper version managementv0.3.0Vicent Marti2011-02-071-1/+1
| | | | | | | | | | We now have proper sonames in Mac OS X and Linux, proper versioning on the pkg-config file and proper DLL naming in Windows. The version of the library is defined exclusively in 'src/git2.h'; the build scripts read it from there automatically. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Add support for installing to a libdir other than 'lib'.Ingmar Vanhassel2009-02-011-1/+1
| | | | | Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Fix pkgconfig file wrt last added dependenciesSteve Frécinaux2008-12-301-2/+2
| | | | | | | | libz and libcrypto dependencies were added recently while libgit2.pc did not get updated. Signed-off-by: Steve Frécinaux <code@istique.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Add pkg-config support.Steve Frécinaux2008-12-301-0/+11
The libgit2.pc is generated on make install and installed, to allow using the lib through the pkg-config helper. Signed-off-by: Steve Frécinaux <code@istique.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>