diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2019-01-04 12:18:20 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-04 12:18:20 +0000 |
| commit | bcf325244c4bfba5a722d1c9269836a3e83ecc73 (patch) | |
| tree | 7e33d8a0d7bcaa7fa0365e55c71fc42ccd5a5fab /git_static.go | |
| parent | b51a90c13329109db0c9ce2303ddf5ad08b3fe5b (diff) | |
| parent | b3256d9058aa93176190cb69f73afb72f0730100 (diff) | |
Merge pull request #445 from rmg/exclusive-pkg-config
static: use pkg-config exclusively when using it
Diffstat (limited to 'git_static.go')
| -rw-r--r-- | git_static.go | 5 |
1 files changed, 2 insertions, 3 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> |
