summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/curl-rustls.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/curl-rustls.m4 b/m4/curl-rustls.m4
index f33822245..12bc8f59e 100644
--- a/m4/curl-rustls.m4
+++ b/m4/curl-rustls.m4
@@ -63,6 +63,9 @@ if test "x$OPT_RUSTLS" != xno; then
rustlslib=$OPT_RUSTLS/lib$libsuff
LDFLAGS="$LDFLAGS $addld"
+ if (test -d "/System/Library/Frameworks/Security.framework" && test "x$cross_compiling" != "xyes"); then
+ LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
+ fi
if test "$addcflags" != "-I/usr/include"; then
CPPFLAGS="$CPPFLAGS $addcflags"
fi