summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-01-14 13:52:52 +0100
committerCarlos Martín Nieto <[email protected]>2015-01-14 13:52:52 +0100
commite8da5affe7ada724b71c6603c81d534752d4be6b (patch)
tree01d208b933420280effae170958c8be07096a784 /git.go
parent62272c41c6a85bbc1cef1e15751f5a3cf993d31b (diff)
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.
Diffstat (limited to 'git.go')
-rw-r--r--git.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.go b/git.go
index 8e78710..9496d2d 100644
--- a/git.go
+++ b/git.go
@@ -3,6 +3,7 @@ package git
/*
#include <git2.h>
#include <git2/sys/openssl.h>
+#cgo pkg-config: libgit2
*/
import "C"
import (