1. 05 Apr, 2017 1 commit
    • pkgconfig: fix handling of prefixes containing whitespaces · 22436f29
      Our libgit2.pc.in file is quoting the `libdir` variable in our declared
      "Libs:" line. The intention is to handle whitespaces here, but pkgconfig
      already does so by automatically escaping whitespace with backslashes.
      The correct thing to do is to instead quote the prefix, as this is the
      one which is being substituted by CMake upon installation. As both
      libdir and includedir will be expanded to "${prefix}/lib" and
      "${prefix}/include", respectively, pkgconfig will also correctly escape
      whitespaces.
      
      Note that this will actually break when a user manually wants to
      override libdir and includedir with a path containing whitespace. But
      actually, this cannot be helped, as always quoting these variables will
      actuall break the common case of being prefixed with "${prefix}". So we
      just bail out here and declare this as unsupported out of the box.
      Patrick Steinhardt committed
  2. 09 Jan, 2016 1 commit
  3. 18 Sep, 2015 1 commit
  4. 29 Jun, 2015 1 commit
    • pkg-config: Sort the different sections · 6a5fb1f4
      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.
      Vicent Marti committed
  5. 23 Oct, 2013 1 commit
  6. 19 Oct, 2012 1 commit
  7. 16 Jul, 2012 1 commit
  8. 07 Aug, 2011 1 commit
  9. 07 Feb, 2011 1 commit
    • Add proper version management · 9d1dcca2
      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>
      Vicent Marti committed
  10. 01 Feb, 2009 1 commit
  11. 31 Dec, 2008 1 commit
  12. 30 Dec, 2008 1 commit
    • Add pkg-config support. · d7fbfe15
      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>
      Steve Frécinaux committed