1
1
Fork 0

acinclude.m4: The mbedtls crypto backend actually requires libmbedcrypto

Examples can't be linked with libmbedtls but need libmbedcrypto, and
any users of libssh2 which use libtool and libssh2.la would encounter
the same problem.

This changes the mbedtls detection to search for libmbedcrypto, which
is the actual dependency for the backend.
This commit is contained in:
Peter Stuge 2016-11-16 22:32:39 +01:00
parent ab8f0bc0bf
commit 5abceec571
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
CRYPTO_CSOURCES = mbedtls.c
CRYPTO_HHEADERS = mbedtls.h
CRYPTO_LTLIBS = $(LTLIBMBEDTLS)
CRYPTO_LTLIBS = $(LTLIBMBEDCRYPTO)

View File

@ -439,7 +439,7 @@ m4_case([$1],
],
[mbedtls], [
LIBSSH2_LIB_HAVE_LINKFLAGS([mbedtls], [], [#include <mbedtls/version.h>], [
LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
found_crypto="$1"
support_clear_memory=yes