mirror of
https://github.com/curl/curl.git
synced 2025-09-12 15:12:42 +03:00
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
This commit is contained in:
parent
ea3dfcb361
commit
7b1c0ab75e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user