diff options
Diffstat (limited to 'git_static.go')
| -rw-r--r-- | git_static.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/git_static.go b/git_static.go new file mode 100644 index 0000000..d0acb3a --- /dev/null +++ b/git_static.go @@ -0,0 +1,17 @@ +// +build static + +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> + +#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 25 +# error "Invalid libgit2 version; this git2go supports libgit2 v0.25" +#endif + +*/ +import "C" |
