summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-06-03 17:47:53 +0200
committerCarlos Martín Nieto <[email protected]>2014-06-03 17:47:53 +0200
commit29a983b68f6dc75271d24e33fc5b3eb7801ce986 (patch)
tree2d4bd687fbf1b09b18f7e1181325e0d46a4b0851
parentde4f42f476e9d635a2452fa9562b60ba5ef39842 (diff)
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.
-rw-r--r--branch.go1
-rw-r--r--git.go2
-rw-r--r--settings/settings.go2
3 files changed, 2 insertions, 3 deletions
diff --git a/branch.go b/branch.go
index a179f75..48db67e 100644
--- a/branch.go
+++ b/branch.go
@@ -1,7 +1,6 @@
package git
/*
-#cgo pkg-config: libgit2
#include <git2.h>
#include <git2/errors.h>
*/
diff --git a/git.go b/git.go
index 48ffeee..5e43dff 100644
--- a/git.go
+++ b/git.go
@@ -1,7 +1,7 @@
package git
/*
-#cgo pkg-config: libgit2
+#cgo pkg-config: --static libgit2
#include <git2.h>
#include <git2/errors.h>
*/
diff --git a/settings/settings.go b/settings/settings.go
index 6661c5d..f18c7a1 100644
--- a/settings/settings.go
+++ b/settings/settings.go
@@ -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)