Skip to content

Commit 89fabd6

Browse files
committed
Build libgit with libssh
1 parent db67438 commit 89fabd6

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile.linux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
44
build-essential \
55
cmake \
66
pkg-config \
7+
libssl-dev \
8+
libssh2-1-dev \
79
ca-certificates \
810
git \
911
&& rm -rf /var/lib/apt/lists/*

Dockerfile.linux-musl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:3.19
22

3-
RUN apk add --no-cache bash build-base cmake
3+
RUN apk add --no-cache bash build-base cmake openssl-dev libssh2-dev
44

55
WORKDIR /nativebinaries
66
COPY . /nativebinaries/

build.libgit2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export _BINPATH=`pwd`
2828

2929
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
3030
-DBUILD_TESTS:BOOL=OFF \
31-
-DUSE_SSH=exec \
31+
-DUSE_SSH=ON \
3232
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
3333
-DCMAKE_OSX_ARCHITECTURES=$OSXARCHITECTURE \
3434
-DUSE_HTTPS=$USEHTTPS \

0 commit comments

Comments
 (0)