Switch default to static linking

Build in libgit2 statically into git2go by default, removing the need
for the right version to be available as a shared object.

We do still need to link dynamically against OpenSSL and LibSSH2.
This commit is contained in:
Carlos Martín Nieto 2014-06-03 17:47:53 +02:00
parent de4f42f476
commit 29a983b68f
3 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package git
/*
#cgo pkg-config: libgit2
#include <git2.h>
#include <git2/errors.h>
*/

2
git.go
View File

@ -1,7 +1,7 @@
package git
/*
#cgo pkg-config: libgit2
#cgo pkg-config: --static libgit2
#include <git2.h>
#include <git2/errors.h>
*/

View File

@ -1,7 +1,7 @@
package settings
/*
#cgo pkg-config: libgit2
#cgo pkg-config: --static libgit2
#include <git2.h>
int _go_git_opts_get_search_path(int level, git_buf *buf)