Browse Source

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

Closes #9883
Stefan Eissing 1 year ago
parent
commit
89ee5cfb38
1 changed files with 8 additions and 0 deletions
  1. 8 0
      m4/curl-rustls.m4

+ 8 - 0
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