]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-rustls.m4: keep existing `CPPFLAGS`/`LDFLAGS` when detected
authorViktor Szakats <commit@vsz.me>
Mon, 11 Nov 2024 12:59:08 +0000 (13:59 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 11 Nov 2024 13:32:01 +0000 (14:32 +0100)
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 647e86a3efe1eea7a2a456c009cfe1eb55fe48eb #13179
Closes #15546

m4/curl-rustls.m4

index fdcbfcd5b16c946cb0e7f23ea68634774d8f3140..593fe43bac8c644c0ed3e1a72752c9b7959c1180 100644 (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])