librb: fix mbedtls library order

libmbedtls depends on libmbedx509 and libmbedcrypto
libmbedx509 depends on libmbedcrypto

They have to be specified in the correct order for the GNU linker to work.
This commit is contained in:
Simon Arlott 2016-04-23 22:13:03 +01:00
parent 0ae7a89d78
commit bf3bcbb5b2
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -352,9 +352,9 @@ if test "$cf_enable_mbedtls" != no; then
save_LIBS="$LIBS" save_LIBS="$LIBS"
LIBS="$LIBS $MBEDTLS_LIBS" LIBS="$LIBS $MBEDTLS_LIBS"
AC_CHECK_LIB(mbedtls, mbedtls_ssl_init, [ AC_CHECK_LIB(mbedtls, mbedtls_ssl_init, [
MBEDTLS_LIBS="$MBEDTLS_LIBS -lmbedtls -lmbedcrypto -lmbedx509" MBEDTLS_LIBS="$MBEDTLS_LIBS -lmbedtls -lmbedx509 -lmbedcrypto"
cf_enable_mbedtls=yes cf_enable_mbedtls=yes
], [cf_enable_mbedtls=no], [-lmbedcrypto -lmbedx509]) ], [cf_enable_mbedtls=no], [-lmbedx509 -lmbedcrypto])
fi fi
dnl GnuTLS support dnl GnuTLS support