Skip to content

Commit 5abceec

Browse files
author
Peter Stuge
committed
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.
1 parent ab8f0bc commit 5abceec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.mbedTLS.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CRYPTO_CSOURCES = mbedtls.c
22
CRYPTO_HHEADERS = mbedtls.h
3-
CRYPTO_LTLIBS = $(LTLIBMBEDTLS)
3+
CRYPTO_LTLIBS = $(LTLIBMBEDCRYPTO)

acinclude.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ m4_case([$1],
439439
],
440440
441441
[mbedtls], [
442-
LIBSSH2_LIB_HAVE_LINKFLAGS([mbedtls], [], [#include <mbedtls/version.h>], [
442+
LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
443443
AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
444444
found_crypto="$1"
445445
support_clear_memory=yes

0 commit comments

Comments
 (0)