git2go/script
Ryan Graham b3256d9058
static: use pkg-config exclusively when using it
When using the static linking option on platforms that use pkg-config,
use ONLY pkg-config to get the CFLAGS and LDFLAGS. This prevents pulling
in dependencies and flags for any non-vendored version that may be
present on the host.

The main practical effect of this is that if someone doesn't need/want
any sort of remote access support at all they can completely disable
libcurl, libssh2, libssl, etc and produce a smaller/simpler binary and
greatly simplify their build-time dependencies. When done properly, the
generated pkg-config file will tell cgo everything it needs to know.

This also prevents confusion if there is a system copy of libgit2 that
is being given priority over the vendored build.

Signed-off-by: Ryan Graham <r.m.graham@gmail.com>
2018-08-23 10:45:27 -07:00
..
build-libgit2-static.sh static: use pkg-config exclusively when using it 2018-08-23 10:45:27 -07:00
check-MakeGitError-thread-lock.go Avoid installing script binary to user's $GOPATH/bin. 2015-04-16 18:45:53 -07:00
install-libgit2.sh Update libgit2 version to install on Travis to 24 2016-03-07 11:33:44 +01:00