summaryrefslogtreecommitdiff
path: root/script/build-libgit2.sh
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-04 20:07:24 -0700
committerGitHub <[email protected]>2021-09-04 20:07:24 -0700
commit549706bb573653469fbcc35c839759987c318d0c (patch)
tree1015f3840025bba474bbfa69be418ea761c079d3 /script/build-libgit2.sh
parent2077003fa5b9689e44a8c8956639f0b424af0d96 (diff)
Declare forward-compatibility with libgit2 v1.2.0 #minor (#800)
We can't yet ship a fully libgit2 v1.2.0-compatible library due to a missing public symbol, but we can allow the v1.1.0-era codebase to link against libgit2 v1.2.0 in the meantime.
Diffstat (limited to 'script/build-libgit2.sh')
-rwxr-xr-xscript/build-libgit2.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh
index a9ff2a9..271a823 100755
--- a/script/build-libgit2.sh
+++ b/script/build-libgit2.sh
@@ -51,8 +51,11 @@ if [ -n "${BUILD_LIBGIT_REF}" ]; then
trap "git submodule update --init" EXIT
fi
+BUILD_DEPRECATED_HARD="ON"
if [ "${BUILD_SYSTEM}" = "ON" ]; then
BUILD_INSTALL_PREFIX=${SYSTEM_INSTALL_PREFIX-"/usr"}
+ # Most system-wide installations won't intentionally omit deprecated symbols.
+ BUILD_DEPRECATED_HARD="OFF"
else
BUILD_INSTALL_PREFIX="${BUILD_PATH}/install"
mkdir -p "${BUILD_PATH}/install/lib"
@@ -68,7 +71,7 @@ cmake -DTHREADSAFE=ON \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DCMAKE_INSTALL_PREFIX="${BUILD_INSTALL_PREFIX}" \
-DCMAKE_INSTALL_LIBDIR="lib" \
- -DDEPRECATE_HARD=ON \
+ -DDEPRECATE_HARD="${BUILD_DEPRECATE_HARD}" \
"${VENDORED_PATH}"
if which make nproc >/dev/null && [ -f Makefile ]; then