Skip to content

Commit

Permalink
Add an option to disable building libssh2 tests
Browse files Browse the repository at this point in the history
These fail to build if mbedtls is not available in the global
linker search path. Add a simple flag to disable them, since
we don't use them.

(cherry picked from commit 4412dd4)
  • Loading branch information
Keno authored and KristofferC committed Feb 20, 2020
1 parent 9b50573 commit f16d869
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/libssh2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ifneq (,$(findstring $(OS),Linux FreeBSD))
LIBSSH2_OPTS += -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
endif

ifeq ($(LIBSSH2_ENABLE_TESTS), 0)
LIBSSH2_OPTS += -DBUILD_TESTING=OFF
endif

$(SRCCACHE)/$(LIBSSH2_SRC_DIR)/libssh2-encryptedpem.patch-applied: $(SRCCACHE)/$(LIBSSH2_SRC_DIR)/source-extracted
cd $(SRCCACHE)/$(LIBSSH2_SRC_DIR) && patch -p1 -f < $(SRCDIR)/patches/libssh2-encryptedpem.patch
echo 1 > $@
Expand Down

0 comments on commit f16d869

Please sign in to comment.