summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git_static.go5
-rwxr-xr-xscript/build-libgit2-static.sh2
2 files changed, 3 insertions, 4 deletions
diff --git a/git_static.go b/git_static.go
index 6303734..243669f 100644
--- a/git_static.go
+++ b/git_static.go
@@ -3,9 +3,8 @@
package git
/*
-#cgo CFLAGS: -I${SRCDIR}/vendor/libgit2/include
-#cgo LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2
-#cgo windows LDFLAGS: -lwinhttp
+#cgo windows CFLAGS: -I${SRCDIR}/vendor/libgit2/include
+#cgo windows LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2 -lwinhttp
#cgo !windows pkg-config: --static ${SRCDIR}/vendor/libgit2/build/libgit2.pc
#include <git2.h>
diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh
index 5723721..1568ece 100755
--- a/script/build-libgit2-static.sh
+++ b/script/build-libgit2-static.sh
@@ -16,4 +16,4 @@ cmake -DTHREADSAFE=ON \
-DCMAKE_INSTALL_PREFIX=../install \
.. &&
-cmake --build .
+cmake --build . --target install