Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit adda470

Browse files
committed
Make BUILD_SHARED_LIBS flag configurable
Preparing for static builds, which can be done without breaching licensing issues with Go transport enabled. Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent d1182f7 commit adda470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ BUILD_TYPE ?= "RelWithDebInfo"
1717
FLAGS ?=
1818
USE_HTTPS ?= OFF
1919
USE_SSH ?= OFF
20+
BUILD_SHARED_LIBS ?= ON
2021

2122
# Cmake version to be installed.
2223
CMAKE_VERSION ?= 3.21.3
@@ -119,7 +120,7 @@ $(LIBGIT2):
119120
-DCMAKE_INSTALL_LIBDIR:PATH=$(INSTALL_LIBDIR) \
120121
-DBUILD_CLAR:BOOL:BOOL=OFF \
121122
-DTHREADSAFE:BOOL=ON \
122-
-DBUILD_SHARED_LIBS=ON \
123+
-DBUILD_SHARED_LIBS:BOOL=$(BUILD_SHARED_LIBS) \
123124
-DUSE_BUNDLED_ZLIB:BOOL=OFF \
124125
-DUSE_HTTP_PARSER:STRING=builtin \
125126
-DREGEX_BACKEND:STRING=builtin \

0 commit comments

Comments
 (0)