mosquitto: enable WITH_ADNS for glibc builds
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 4 Apr 2017 19:37:30 +0000 (21:37 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 7 Apr 2017 22:25:12 +0000 (00:25 +0200)
WITH_ADNS option has been added in version 1.4.11

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mosquitto/mosquitto.mk

index c273c984145bcc53db1442a1c8d3833414799bc3..9ffd149a753af2e70ab3aaddb7a0122c90d911d0 100644 (file)
@@ -17,6 +17,13 @@ MOSQUITTO_MAKE_OPTS = \
        WITH_WRAP=no \
        WITH_DOCS=no
 
+# adns uses getaddrinfo_a
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
+MOSQUITTO_MAKE_OPTS += WITH_ADNS=yes
+else
+MOSQUITTO_MAKE_OPTS += WITH_ADNS=no
+endif
+
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
 MOSQUITTO_MAKE_OPTS += WITH_THREADING=yes
 else