Skip to content

Commit 29a983b

Browse files
committed
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.
1 parent de4f42f commit 29a983b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

branch.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package git
22

33
/*
4-
#cgo pkg-config: libgit2
54
#include <git2.h>
65
#include <git2/errors.h>
76
*/

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package git
22

33
/*
4-
#cgo pkg-config: libgit2
4+
#cgo pkg-config: --static libgit2
55
#include <git2.h>
66
#include <git2/errors.h>
77
*/

settings/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package settings
22

33
/*
4-
#cgo pkg-config: libgit2
4+
#cgo pkg-config: --static libgit2
55
#include <git2.h>
66
77
int _go_git_opts_get_search_path(int level, git_buf *buf)

0 commit comments

Comments
 (0)