Link dynamically or statically depending on build flags #361

Merged
carlosmn merged 1 commits from cmn/link-tags-v25 into v25 2017-01-20 07:46:33 -06:00
carlosmn commented 2017-01-20 07:35:46 -06:00 (Migrated from github.com)

This lets us specify which set of rules to link to libgit2 we'll use during
build. Together with the changes to the Makefile, this lets you specify

make install

or

make install-static

to build either dynamically against the system-provided library or against the
version specified in the submodule.

The dynamic linking against the system library is still the default in order to
allow for the Go toolchain to build it when it's used as a dependency.

This lets us specify which set of rules to link to libgit2 we'll use during build. Together with the changes to the Makefile, this lets you specify make install or make install-static to build either dynamically against the system-provided library or against the version specified in the submodule. The dynamic linking against the system library is still the default in order to allow for the Go toolchain to build it when it's used as a dependency.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#361
No description provided.