summaryrefslogtreecommitdiff
path: root/git_static.go
AgeCommit message (Collapse)Author
2018-08-23static: use pkg-config exclusively when using itRyan Graham
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 <[email protected]>
2018-02-22Switch over the version contraints to v0.27Carlos Martín Nieto
2017-09-03Update vendored libgit2 to latestCarlos Martín Nieto
2017-04-14Allow building statically via the "static" build tagCarlos Martín Nieto