[Buildroot] [git commit branch/2017.02.x] mosquitto: enable WITH_ADNS for glibc builds

Peter Korsgaard peter at korsgaard.com
Thu Jun 1 14:35:01 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=3f7bfc36b3752c1db45925df38a7d7a6e710098e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.02.x

WITH_ADNS option has been added in version 1.4.11

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit f78b2c13d1a5b4a7903186cf6cc53299791d0da5)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/mosquitto/mosquitto.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mosquitto/mosquitto.mk b/package/mosquitto/mosquitto.mk
index e79a042..8918128 100644
--- a/package/mosquitto/mosquitto.mk
+++ b/package/mosquitto/mosquitto.mk
@@ -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


More information about the buildroot mailing list