mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
makefile.m32: add support for libidn2
libidn was replaced with libidn2 last year in configure. Caveat: libidn2 may depend on a list of further libs. These can be manually specified via CURL_LDFLAG_EXTRAS. Closes https://github.com/curl/curl/pull/1815
This commit is contained in:
parent
ebf46317ee
commit
43fb867a58
@ -50,9 +50,9 @@ endif
|
|||||||
ifndef LIBRTMP_PATH
|
ifndef LIBRTMP_PATH
|
||||||
LIBRTMP_PATH = ../../librtmp-2.4
|
LIBRTMP_PATH = ../../librtmp-2.4
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your libidn package.
|
# Edit the path below to point to the base of your libidn2 package.
|
||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN2_PATH
|
||||||
LIBIDN_PATH = ../../libidn-1.32
|
LIBIDN2_PATH = ../../libidn2-2.0.3
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your MS IDN package.
|
# Edit the path below to point to the base of your MS IDN package.
|
||||||
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
||||||
@ -167,8 +167,8 @@ endif
|
|||||||
ifeq ($(findstring -zlib,$(CFG)),-zlib)
|
ifeq ($(findstring -zlib,$(CFG)),-zlib)
|
||||||
ZLIB = 1
|
ZLIB = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -idn,$(CFG)),-idn)
|
ifeq ($(findstring -idn2,$(CFG)),-idn2)
|
||||||
IDN = 1
|
IDN2 = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -winidn,$(CFG)),-winidn)
|
ifeq ($(findstring -winidn,$(CFG)),-winidn)
|
||||||
WINIDN = 1
|
WINIDN = 1
|
||||||
@ -267,10 +267,10 @@ ifdef ZLIB
|
|||||||
CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H
|
CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H
|
||||||
DLL_LIBS += -L"$(ZLIB_PATH)" -lz
|
DLL_LIBS += -L"$(ZLIB_PATH)" -lz
|
||||||
endif
|
endif
|
||||||
ifdef IDN
|
ifdef IDN2
|
||||||
INCLUDES += -I"$(LIBIDN_PATH)/include"
|
INCLUDES += -I"$(LIBIDN2_PATH)/include"
|
||||||
CFLAGS += -DUSE_LIBIDN
|
CFLAGS += -DUSE_LIBIDN2
|
||||||
DLL_LIBS += -L"$(LIBIDN_PATH)/lib" -lidn
|
DLL_LIBS += -L"$(LIBIDN2_PATH)/lib" -lidn2
|
||||||
else
|
else
|
||||||
ifdef WINIDN
|
ifdef WINIDN
|
||||||
CFLAGS += -DUSE_WIN32_IDN
|
CFLAGS += -DUSE_WIN32_IDN
|
||||||
|
@ -62,9 +62,9 @@ endif
|
|||||||
ifndef LIBXML2_PATH
|
ifndef LIBXML2_PATH
|
||||||
LIBXML2_PATH = ../../libxml2-2.9.2
|
LIBXML2_PATH = ../../libxml2-2.9.2
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your libidn package.
|
# Edit the path below to point to the base of your libidn2 package.
|
||||||
ifndef LIBIDN_PATH
|
ifndef LIBIDN2_PATH
|
||||||
LIBIDN_PATH = ../../libidn-1.32
|
LIBIDN2_PATH = ../../libidn2-2.0.3
|
||||||
endif
|
endif
|
||||||
# Edit the path below to point to the base of your MS IDN package.
|
# Edit the path below to point to the base of your MS IDN package.
|
||||||
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
|
||||||
@ -179,8 +179,8 @@ endif
|
|||||||
ifeq ($(findstring -zlib,$(CFG)),-zlib)
|
ifeq ($(findstring -zlib,$(CFG)),-zlib)
|
||||||
ZLIB = 1
|
ZLIB = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -idn,$(CFG)),-idn)
|
ifeq ($(findstring -idn2,$(CFG)),-idn2)
|
||||||
IDN = 1
|
IDN2 = 1
|
||||||
endif
|
endif
|
||||||
ifeq ($(findstring -winidn,$(CFG)),-winidn)
|
ifeq ($(findstring -winidn,$(CFG)),-winidn)
|
||||||
WINIDN = 1
|
WINIDN = 1
|
||||||
@ -284,9 +284,9 @@ ifdef ZLIB
|
|||||||
CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H
|
CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H
|
||||||
curl_LDADD += -L"$(ZLIB_PATH)" -lz
|
curl_LDADD += -L"$(ZLIB_PATH)" -lz
|
||||||
endif
|
endif
|
||||||
ifdef IDN
|
ifdef IDN2
|
||||||
CFLAGS += -DUSE_LIBIDN
|
CFLAGS += -DUSE_LIBIDN2
|
||||||
curl_LDADD += -L"$(LIBIDN_PATH)/lib" -lidn
|
curl_LDADD += -L"$(LIBIDN2_PATH)/lib" -lidn2
|
||||||
else
|
else
|
||||||
ifdef WINIDN
|
ifdef WINIDN
|
||||||
CFLAGS += -DUSE_WIN32_IDN
|
CFLAGS += -DUSE_WIN32_IDN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user