Link dynamically to libgit2

With libgit2 v0.22 released, we can expect its API and ABI to remain
stable when installed on the system.

Linking dynamically allows us to use the go tool alone to build and
install the package.
This commit is contained in:
Carlos Martín Nieto 2015-01-14 13:52:52 +01:00
parent 62272c41c6
commit e8da5affe7
1 changed files with 1 additions and 0 deletions

1
git.go
View File

@ -3,6 +3,7 @@ package git
/*
#include <git2.h>
#include <git2/sys/openssl.h>
#cgo pkg-config: libgit2
*/
import "C"
import (