When for some reason the dependencies of the compiled mbed TLS libaries (libmbedtls, libmbedcrypto and libmbedx509) are not correct, the configure script will fail to link against libmbedcrypto and/or libmbedx509. This is reported to happen after using 'make install' to install mbedtls.
This patch makes sure the configure tests link to all three. The build process itself already did. Signed-off-by: Steffan Karger <stef...@karger.me> --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3b8bf96..f1dc8af 100644 --- a/configure.ac +++ b/configure.ac @@ -843,7 +843,8 @@ elif test "${with_crypto_library}" = "mbedtls"; then saved_LIBS="${LIBS}" if test -z "${MBEDTLS_CFLAGS}" -a -z "${MBEDTLS_LIBS}"; then - # if the user did not explicitly specify flags, try to autodetect + # if the user did not explicitly specify flags, try to autodetect + LIBS="${LIBS} -lmbedtls -lmbedcrypto -lmbedx509" AC_CHECK_LIB( [mbedtls], [mbedtls_ssl_init], -- 2.7.4