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:
parent
0ae7a89d78
commit
bf3bcbb5b2
1 changed files with 2 additions and 2 deletions
|
@ -352,9 +352,9 @@ if test "$cf_enable_mbedtls" != no; then
|
|||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $MBEDTLS_LIBS"
|
||||
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=no], [-lmbedcrypto -lmbedx509])
|
||||
], [cf_enable_mbedtls=no], [-lmbedx509 -lmbedcrypto])
|
||||
fi
|
||||
|
||||
dnl GnuTLS support
|
||||
|
|
Loading…
Reference in a new issue