aboutsummaryrefslogtreecommitdiff
path: root/package/dnsmasq/dnsmasq.mk
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-06-20 18:23:24 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-22 09:57:00 +0200
commit026a27ade4a6f4e71b5da0c2b29f26bbbb1dbb45 (patch)
tree7a8b3c4f38a86625c4ab3b9d1765df5e4ffa22b1 /package/dnsmasq/dnsmasq.mk
parentbb216ed060b16e09b2027ef242347b2f2e3c97dc (diff)
downloadbuildroot-026a27ade4a6f4e71b5da0c2b29f26bbbb1dbb45.tar.gz
buildroot-026a27ade4a6f4e71b5da0c2b29f26bbbb1dbb45.tar.bz2
package/dnsmasq: add libidn2 support
libidn2 is preferred over libidn, see src/util.c: #if defined(HAVE_LIBIDN2) #include <idn2.h> #elif defined(HAVE_IDN) #include <idna.h> #endif So select libidn2 if libidn is not enabled Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/dnsmasq/dnsmasq.mk')
-rw-r--r--package/dnsmasq/dnsmasq.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/dnsmasq/dnsmasq.mk b/package/dnsmasq/dnsmasq.mk
index 366cebf012..f271523068 100644
--- a/package/dnsmasq/dnsmasq.mk
+++ b/package/dnsmasq/dnsmasq.mk
@@ -34,9 +34,14 @@ DNSMASQ_COPTS += -DNO_TFTP
endif
ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y)
+ifeq ($(BR2_PACKAGE_LIBIDN2),y)
+DNSMASQ_DEPENDENCIES += libidn2
+DNSMASQ_COPTS += -DHAVE_LIBIDN2
+else
DNSMASQ_DEPENDENCIES += libidn
DNSMASQ_COPTS += -DHAVE_IDN
endif
+endif
ifeq ($(BR2_PACKAGE_DNSMASQ_CONNTRACK),y)
DNSMASQ_DEPENDENCIES += libnetfilter_conntrack