summaryrefslogtreecommitdiff
path: root/m4/curl-rustls.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/curl-rustls.m4')
-rw-r--r--m4/curl-rustls.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/curl-rustls.m4 b/m4/curl-rustls.m4
index 6fd8235aa..32fba041e 100644
--- a/m4/curl-rustls.m4
+++ b/m4/curl-rustls.m4
@@ -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