Skip to content

Commit ee2d897

Browse files
committed
setting LDFLAGS as suggested by @vszakats
1 parent f3bd502 commit ee2d897

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

m4/curl-rustls.m4

+6-10
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ if test "x$OPT_RUSTLS" != xno; then
3434
CLEANLDFLAGS="$LDFLAGS"
3535
CLEANCPPFLAGS="$CPPFLAGS"
3636
37-
case $host in
38-
*-apple-*)
39-
LDFLAGS="$LDFLAGS -framework Security"
40-
;;
41-
*)
42-
;;
43-
esac
4437
## NEW CODE
4538
4639
dnl use pkg-config unless we have been given a path
@@ -88,11 +81,14 @@ if test "x$OPT_RUSTLS" != xno; then
8881
CPPFLAGS="$CPPFLAGS $addcflags"
8982
fi
9083
91-
if test $(uname) = "Darwin"; then
84+
case $host in
85+
*-apple-*)
9286
RUSTLS_LDFLAGS="-framework Security -framework Foundation"
93-
else
87+
;;
88+
*)
9489
RUSTLS_LDFLAGS="-lpthread -ldl -lm"
95-
fi
90+
;;
91+
esac
9692
AC_CHECK_LIB(rustls, rustls_connection_read,
9793
[
9894
AC_DEFINE(USE_RUSTLS, 1, [if Rustls is enabled])

0 commit comments

Comments
 (0)