We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b51a90c + b3256d9 commit bcf3252Copy full SHA for bcf3252
git_static.go
@@ -3,9 +3,8 @@
3
package git
4
5
/*
6
-#cgo CFLAGS: -I${SRCDIR}/vendor/libgit2/include
7
-#cgo LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2
8
-#cgo windows LDFLAGS: -lwinhttp
+#cgo windows CFLAGS: -I${SRCDIR}/vendor/libgit2/include
+#cgo windows LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2 -lwinhttp
9
#cgo !windows pkg-config: --static ${SRCDIR}/vendor/libgit2/build/libgit2.pc
10
#include <git2.h>
11
script/build-libgit2-static.sh
@@ -16,4 +16,4 @@ cmake -DTHREADSAFE=ON \
16
-DCMAKE_INSTALL_PREFIX=../install \
17
.. &&
18
19
-cmake --build .
+cmake --build . --target install
0 commit comments