Revamp the ways in which the library can be built #621
Loading…
Reference in New Issue
No description provided.
Delete Branch "build-tags-revamp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change allows to link the system version of libgit2 statically.
Since
-tags static
is already used for the bundled version of thelibrary and to avoid breaking old workflows,
-tags static,system_libgit2
is now used to select that.This means that the valid combinations are:
-tags static,system_libgit2
-tags static
Note that there is no way to express dynamically linking against the
bundled libgit2 because that makes very little sense, since the binaries
wouldn't be able to be distributed. If that's still desired, the
PKG_CONFIG_PATH
environment variable can set before building the code.Makefile
hasan example of how it is used in the CI.
Thank you for this PR. This will eliminate the workaround that I do to build statically because I'm using the go module mod in my project.
awesome, seems like there is some demand for this. I changed the
system
tag since it's too vague (and collision-prone) in favor ofsystem_libgit2
. Let's land this!