Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-10-12 09:34:38 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-10-12 16:24:32 +0300
commit81ea4d52b0e558704ee49dde9e8516bc18c09619 (patch)
tree34727ce32d33d87ee6befafaf995f5d6cdf27dc9 /Makefile
parentd897d27c602d80b247af46a4ce672c2cd9b591ba (diff)
Makefile: Fix use of renamed CMake options for libgit2
The recent upgrade to libgit2 v1.5.0 brought in renames of two CMake variables: - `-DTHREADSAFE` is now called `-DUSE_THREADS`. - `-DBUILD_CLAR` is now walled `-DBUILD_TESTS`. We failed to adapt accordingly and thus we're currently using the respective default values. As threads are enabled by default anyway this doesn't matter, but we now fail to disable tests and thus accidentally require Python to compile libgit2. Fix this by adjusting the variables.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 66e0aadfd..b7efa3b34 100644
--- a/Makefile
+++ b/Makefile
@@ -191,8 +191,7 @@ LIBGIT2_INSTALL_DIR ?= ${DEPENDENCY_DIR}/libgit2/install
ifeq ($(origin LIBGIT2_BUILD_OPTIONS),undefined)
## Build options for libgit2.
LIBGIT2_BUILD_OPTIONS ?=
- LIBGIT2_BUILD_OPTIONS += -DTHREADSAFE=ON
- LIBGIT2_BUILD_OPTIONS += -DBUILD_CLAR=OFF
+ LIBGIT2_BUILD_OPTIONS += -DBUILD_TESTS=OFF
LIBGIT2_BUILD_OPTIONS += -DBUILD_SHARED_LIBS=OFF
LIBGIT2_BUILD_OPTIONS += -DCMAKE_C_FLAGS=-fPIC
LIBGIT2_BUILD_OPTIONS += -DCMAKE_BUILD_TYPE=Release
@@ -205,8 +204,8 @@ ifeq ($(origin LIBGIT2_BUILD_OPTIONS),undefined)
LIBGIT2_BUILD_OPTIONS += -DUSE_NTLMCLIENT=OFF
LIBGIT2_BUILD_OPTIONS += -DUSE_BUNDLED_ZLIB=ON
LIBGIT2_BUILD_OPTIONS += -DUSE_HTTP_PARSER=builtin
+ LIBGIT2_BUILD_OPTIONS += -DUSE_THREADS=ON
LIBGIT2_BUILD_OPTIONS += -DREGEX_BACKEND=builtin
- LIBGIT2_BUILD_OPTIONS += -DBUILD_TESTS=OFF
endif
ifdef LIBGIT2_APPEND_BUILD_OPTIONS