From 5001942b59502155fc51b7d315b161c721ea1cf2 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Sat, 19 Nov 2016 15:48:39 +0100 Subject: Allow building statically via the "static" build tag --- git.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'git.go') diff --git a/git.go b/git.go index c032b0a..5181b8b 100644 --- a/git.go +++ b/git.go @@ -1,17 +1,8 @@ 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 #include - -#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 25 -# error "Invalid libgit2 version; this git2go supports libgit2 v0.25" -#endif - */ import "C" import ( -- cgit v1.2.3