]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-rustls.m4: on macOS, rustls also needs the Security framework
authorStefan Eissing <stefan@eissing.org>
Thu, 10 Nov 2022 15:30:16 +0000 (16:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Nov 2022 16:50:51 +0000 (17:50 +0100)
Closes #9883

m4/curl-rustls.m4

index 6fd8235aad21a9db625ad1b991bb2078d18175b9..32fba041ec917016b8d39ad4b9b7f88f14a3e7d3 100644 (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