Skip to content

Makefile: Allow appending Git and libgit2 build options

Patrick Steinhardt requested to merge pks-makefile-extra-build-options into master

When executing make git, then Gitaly provides a default set of build options. These include all kinds of things, but most importantly we disable a bunch of options which we don't need at runtime. In case downstream distributions of Gitaly want to build Git with a bunch of additional options though, they have no other way to do so than to copy the default set of options and then append whatever they want to change to this set. This is quite fragile, and any changes done in Gitaly won't be reflected in downstream distributions like this.

Improve this by adding two new build variables GIT_APPEND_BUILD_OPTIONS and LIBGIT2_APPEND_BUILD_OPTIONS, which allow appending additional options without overriding the defaults.

Merge request reports

Loading