curl-rustls.m4: keep existing CPPFLAGS/LDFLAGS when detected

Different variable names were used in flag save and restore operations,
which could cause existing `CPPFLAGS` and `LDFLAGS` be accidentally lost
when detecting Rustls.

Follow-up to 647e86a3ef #13179
Closes #15546
This commit is contained in:
Viktor Szakats 2024-11-11 13:59:08 +01:00
parent 8b76a8aeb2
commit 774844ab5d
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -155,8 +155,8 @@ if test "x$OPT_RUSTLS" != xno; then
fi
dnl finally, set flags to use this TLS backend
CPPFLAGS="$CLEAN_CPPFLAGS $SSL_CPPFLAGS"
LDFLAGS="$CLAN_LDFLAGS $SSL_LDFLAGS"
CPPFLAGS="$CLEANCPPFLAGS $SSL_CPPFLAGS"
LDFLAGS="$CLEANLDFLAGS $SSL_LDFLAGS"
if test "x$USE_RUSTLS" = "xyes"; then
AC_MSG_NOTICE([detected Rustls])