]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
configure.ac: link to all mbed TLS libs during library detection
authorSteffan Karger <steffan@karger.me>
Sun, 1 May 2016 18:23:06 +0000 (20:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 1 May 2016 20:23:28 +0000 (22:23 +0200)
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 <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1462126986-2686-1-git-send-email-steffan@karger.me>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac

index f2c61fee2d0a3c8bc184ed9ed16731248a81d5bd..30f6cfcbdbbf7855d13469d772cfb5b767db664c 100644 (file)
@@ -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],