]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Makefile.mk: improve a GNU Make hack [ci skip]
authorViktor Szakats <commit@vsz.me>
Mon, 5 Dec 2022 14:31:32 +0000 (14:31 +0000)
committerViktor Szakats <commit@vsz.me>
Mon, 5 Dec 2022 14:31:32 +0000 (14:31 +0000)
Replace the hack of using `$() ` to represent a single space. The new
method silences the `--warn-undefined-variables` debug warning and it's
also a better-known form of solving this problem.

Reviewed-by: Jay Satiro
Closes #10031

lib/Makefile.mk

index efd4ba42028366f3222bf84b918bca957580b62d..56917e020119b5b1dd0407ae737f19d1a3ed1294 100644 (file)
@@ -324,7 +324,7 @@ ifdef WIN32
   _LIBS += -lws2_32 -lcrypt32 -lbcrypt
 endif
 
-ifneq ($(findstring 11,$(subst $(,,$(SSLLIBS))),)
+ifneq ($(findstring 11,$(subst $(subst ,, ),,$(SSLLIBS))),)
   CPPFLAGS += -DCURL_WITH_MULTI_SSL
 endif