diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-11-12 18:06:48 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-13 11:14:00 +0100 |
commit | 72a63aa46615206034cb91bcb822351249efc714 (patch) | |
tree | ef0d335f2187646c2f857ba5b9099779e5c95fb9 /m4 | |
parent | 541adbe2d8750a68545a29e2e994d61cc87137c3 (diff) | |
download | curl-72a63aa46615206034cb91bcb822351249efc714.tar.gz |
configure: add -lm to configure for rustls build.
Note: The list of libraries that rustc tells us we need to include is
longer, but also includes some more platform-specific libraries that I
am not sure how to effectively incorporate. Adding just -lm seems to
solve an immediate problem, so I'm adding just that.
Closes #8002
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-rustls.m4 | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/m4/curl-rustls.m4 b/m4/curl-rustls.m4 index aa418cc63..4fe7f8e85 100644 --- a/m4/curl-rustls.m4 +++ b/m4/curl-rustls.m4 @@ -48,14 +48,9 @@ if test "x$OPT_RUSTLS" != xno; then USE_RUSTLS="yes" ssl_msg="rustls" test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes - ], [], -lpthread -ldl) + ], [], -lpthread -ldl -lm) fi - addld="" - addlib="-lpthread" - addcflags="" - bearssllib="" - if test "x$USE_RUSTLS" != "xyes"; then dnl add the path and test again addld=-L$OPT_RUSTLS/lib$libsuff @@ -77,14 +72,14 @@ if test "x$OPT_RUSTLS" != xno; then test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes ], AC_MSG_ERROR([--with-rustls was specified but could not find rustls.]), - -lpthread -ldl) + -lpthread -ldl -lm) fi if test "x$USE_RUSTLS" = "xyes"; then AC_MSG_NOTICE([detected rustls]) check_for_ca_bundle=1 - LIBS="-lrustls -lpthread -ldl $LIBS" + LIBS="-lrustls -lpthread -ldl -lm $LIBS" if test -n "$rustlslib"; then dnl when shared libs were found in a path that the run-time |