From 549706bb573653469fbcc35c839759987c318d0c Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sat, 4 Sep 2021 20:07:24 -0700 Subject: 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. --- script/build-libgit2.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script/build-libgit2.sh') 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 -- cgit v1.2.3