@@ -4,10 +4,11 @@ LIBSSH2_GIT_URL := https://github.com/libssh2/libssh2.git
44LIBSSH2_TAR_URL = https://api.github.com/repos/libssh2/libssh2/tarball/$1
55$(eval $(call git-external,libssh2,LIBSSH2,CMakeLists.txt,,$(SRCCACHE)))
66
7- ifeq ($(USE_SYSTEM_MBEDTLS ) , 0)
8- $(BUILDDIR ) /$(LIBSSH2_SRC_DIR ) /build-configured : | $(build_prefix ) /manifest/mbedtls
7+ ifeq ($(USE_SYSTEM_OPENSSL ) , 0)
8+ $(BUILDDIR ) /$(LIBSSH2_SRC_DIR ) /build-configured : | $(build_prefix ) /manifest/openssl
99endif
1010
11+
1112LIBSSH2_OPTS := $(CMAKE_COMMON ) -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF \
1213 -DCMAKE_BUILD_TYPE=Release
1314
@@ -21,7 +22,7 @@ ifeq ($(BUILD_OS),WINNT)
2122LIBSSH2_OPTS += -G"MSYS Makefiles"
2223endif
2324else
24- LIBSSH2_OPTS += -DCRYPTO_BACKEND=mbedTLS -DENABLE_ZLIB_COMPRESSION=OFF
25+ LIBSSH2_OPTS += -DCRYPTO_BACKEND=OpenSSL -DENABLE_ZLIB_COMPRESSION=OFF
2526endif
2627
2728ifneq (,$(findstring $(OS ) ,Linux FreeBSD OpenBSD) )
3435
3536LIBSSH2_SRC_PATH := $(SRCCACHE ) /$(LIBSSH2_SRC_DIR )
3637
37- $(LIBSSH2_SRC_PATH ) /libssh2-mbedtls-size_t.patch-applied : $(LIBSSH2_SRC_PATH ) /source-extracted
38- cd $(LIBSSH2_SRC_PATH ) && \
39- patch -p1 -f < $(SRCDIR ) /patches/libssh2-mbedtls-size_t.patch
40- echo 1 > $@
41-
42- $(BUILDDIR ) /$(LIBSSH2_SRC_DIR ) /build-configured : \
43- $(LIBSSH2_SRC_PATH ) /libssh2-mbedtls-size_t.patch-applied
44-
4538$(BUILDDIR ) /$(LIBSSH2_SRC_DIR ) /build-configured : $(LIBSSH2_SRC_PATH ) /source-extracted
4639 mkdir -p $(dir $@ )
4740 cd $(dir $@ ) && \
0 commit comments