Skip to content

Commit

Permalink
[LibGit2] Explicitly request SSH support (#4931)
Browse files Browse the repository at this point in the history
Also, update a couple of other renamed CMake options.
  • Loading branch information
giordano authored May 22, 2022
1 parent 72595c4 commit 093fdc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions L/LibGit2/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ atomic_patch -p1 $WORKSPACE/srcdir/patches/libgit2-hostkey.patch
BUILD_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DTHREADSAFE=ON
-DUSE_THREADS=ON
-DUSE_BUNDLED_ZLIB=ON
-DUSE_SSH=ON
"-DCMAKE_INSTALL_PREFIX=${prefix}"
"-DCMAKE_TOOLCHAIN_FILE="${CMAKE_TARGET_TOOLCHAIN}""
)
Expand All @@ -36,7 +37,7 @@ if [[ ${target} == *-mingw* ]]; then
BUILD_FLAGS+=(-Dssh2_RESOLVED=${bindir}/libssh2.dll)
elif [[ ${target} == *linux* ]] || [[ ${target} == *freebsd* ]]; then
# If we're on Linux or FreeBSD, explicitly ask for mbedTLS instead of OpenSSL
BUILD_FLAGS+=(-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=CollisionDetection -DCMAKE_INSTALL_RPATH="\$ORIGIN")
BUILD_FLAGS+=(-DUSE_HTTPS=mbedTLS -DUSE_SHA1=CollisionDetection -DCMAKE_INSTALL_RPATH="\$ORIGIN")
fi
mkdir build && cd build
Expand Down

0 comments on commit 093fdc9

Please sign in to comment.