curl-rustls.m4: on macOS, rustls also needs the Security framework

Closes #9883
This commit is contained in:
Stefan Eissing 2022-11-10 16:30:16 +01:00 committed by Daniel Stenberg
parent b25e4be79f
commit 89ee5cfb38
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -38,6 +38,14 @@ if test "x$OPT_RUSTLS" != xno; then
OPT_RUSTLS=""
fi
case $host_os in
darwin*)
LDFLAGS="$LDFLAGS -framework Security"
;;
*)
;;
esac
if test -z "$OPT_RUSTLS" ; then
dnl check for lib first without setting any new path