From: Steffan Karger Date: Sun, 1 May 2016 18:23:06 +0000 (+0200) Subject: configure.ac: link to all mbed TLS libs during library detection X-Git-Tag: v2.4_alpha1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e860059baa912ced7acf00f9b1e85a3d80dc0b1f;p=thirdparty%2Fopenvpn.git configure.ac: link to all mbed TLS libs during library detection 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 Acked-by: Gert Doering Message-Id: <1462126986-2686-1-git-send-email-steffan@karger.me> Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index f2c61fee2..30f6cfcbd 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],