From 7b1c0ab75ed3c95bf4441ac1d2a3508b91108943 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 6 Aug 2024 16:24:59 +0200 Subject: [PATCH] Makefile.mk: fixup enabling libidn2 Replicate the method used by autotools and cmake to enable libidn2. This way `lib/curl_setup.h` sets `USE_LIBIDN2` automatically. Before this patch, `USE_LIBIDN2` was enabled directly, shortcutting internal logic prioritizing IDN backends. (This is academic now because `Makefile.mk` no longer supports other IDN backends. But still useful for clarity.) Closes #14421 --- lib/Makefile.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile.mk b/lib/Makefile.mk index bb6873cc45..89b7aeb1e7 100644 --- a/lib/Makefile.mk +++ b/lib/Makefile.mk @@ -239,7 +239,7 @@ endif ifneq ($(findstring -idn2,$(CFG)),) LIBIDN2_PATH ?= $(PROOT)/../libidn2 - CPPFLAGS += -DUSE_LIBIDN2 + CPPFLAGS += -DHAVE_LIBIDN2 -DHAVE_IDN2_H CPPFLAGS += -I"$(LIBIDN2_PATH)/include" LDFLAGS += -L"$(LIBIDN2_PATH)/lib" LIBS += -lidn2