diff options
| -rw-r--r-- | git_dynamic.go | 4 | ||||
| -rw-r--r-- | git_static.go | 4 | ||||
| -rwxr-xr-x | script/build-libgit2.sh | 2 | ||||
| m--------- | vendor/libgit2 | 0 |
4 files changed, 6 insertions, 4 deletions
diff --git a/git_dynamic.go b/git_dynamic.go index 06deeeb..9112954 100644 --- a/git_dynamic.go +++ b/git_dynamic.go @@ -6,8 +6,8 @@ package git #include <git2.h> #cgo pkg-config: libgit2 -#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 28 -# error "Invalid libgit2 version; this git2go supports libgit2 v0.28" +#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 99 +# error "Invalid libgit2 version; this git2go supports libgit2 v0.99" #endif */ diff --git a/git_static.go b/git_static.go index d7c2295..4dcb1db 100644 --- a/git_static.go +++ b/git_static.go @@ -8,8 +8,8 @@ package git #cgo !windows pkg-config: --static ${SRCDIR}/static-build/install/lib/pkgconfig/libgit2.pc #include <git2.h> -#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 28 -# error "Invalid libgit2 version; this git2go supports libgit2 v0.28" +#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 99 +# error "Invalid libgit2 version; this git2go supports libgit2 v0.99" #endif */ diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index acbc84a..839b8f3 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -41,6 +41,8 @@ cmake -DTHREADSAFE=ON \ -DCMAKE_C_FLAGS=-fPIC \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ -DCMAKE_INSTALL_PREFIX="${BUILD_PATH}/install" \ + -DINCLUDE_INSTALL_DIR="${BUILD_PATH}/install/include" \ + -DLIB_INSTALL_DIR="${BUILD_PATH}/install/lib" \ "${VENDORED_PATH}" && exec cmake --build . --target install diff --git a/vendor/libgit2 b/vendor/libgit2 -Subproject ee3307a183e39d602b25fa94831c6fc09e7c1b6 +Subproject 172239021f7ba04fe7327647b213799853a9eb8 |
