summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-11-13 19:31:57 +0100
committerGitHub <[email protected]>2016-11-13 19:31:57 +0100
commit4eecbd8d447b48ca29d4e9e782cbe0451535893e (patch)
tree6c4d504cf3814ea88dd3e16f2d8b2b121e66325e /git.go
parent9af9dd3ad71055e60ff7af6ffd5da42960915996 (diff)
parent7f426f2435087a35155b4e8b859fb52f09f79a72 (diff)
Merge pull request #338 from libgit2/cmn/variable-subst
Use variable substitution instead of a wrapper script
Diffstat (limited to 'git.go')
-rw-r--r--git.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/git.go b/git.go
index 53b1a12..77394cf 100644
--- a/git.go
+++ b/git.go
@@ -1,6 +1,10 @@
package git
/*
+#cgo CFLAGS: -I${SRCDIR}/vendor/libgit2/include
+#cgo LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2
+#cgo windows LDFLAGS: -lwinhttp
+#cgo !windows pkg-config: --static ${SRCDIR}/vendor/libgit2/build/libgit2.pc
#include <git2.h>
#include <git2/sys/openssl.h>