diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2019-01-07 14:02:51 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-07 14:02:51 +0000 |
| commit | b30b050c9c8a531c9c58b8b52c83a13b8d149caf (patch) | |
| tree | a66d410cc0b3a5a00d85a7b70a53afa601473cab /git_static.go | |
| parent | e93f34cf186c46cd105b0f58ac2a390cc87fb698 (diff) | |
| parent | f3c487966d53ad78e25d2e6750414009f5606dbb (diff) | |
Merge pull request #475 from lhchavez/self-contained-build
Improve the static build script
Diffstat (limited to 'git_static.go')
| -rw-r--r-- | git_static.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git_static.go b/git_static.go index 243669f..547ae8a 100644 --- a/git_static.go +++ b/git_static.go @@ -3,9 +3,9 @@ package git /* -#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 +#cgo windows CFLAGS: -I${SRCDIR}/static-build/install/include/ +#cgo windows LDFLAGS: -L${SRCDIR}/static-build/install/lib/ -lgit2 -lwinhttp +#cgo !windows pkg-config: --static ${SRCDIR}/static-build/install/lib/pkgconfig/libgit2.pc #include <git2.h> #if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 27 |
