aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2018-11-26 09:25:34 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-11-26 12:51:26 +0100
commit387a72cc169c664936b32fa4e3397224170cd525 (patch)
tree70fd170e48d9c7646e4ca47d73d1518fff623d7e
parent371498e002f181253806a9b42a858a70d48d3f3f (diff)
downloadbuildroot-387a72cc169c664936b32fa4e3397224170cd525.tar.gz
buildroot-387a72cc169c664936b32fa4e3397224170cd525.tar.bz2
mosquitto: fix build on uClibc
Fixes: http://autobuild.buildroot.net/results/c42/c425eb496cc5422ff1e2e51e59d4baf377bcbeed/ The memory tracking feature of mosquitto (which is enabled by default on systems defining __GLIBC__) uses malloc_usable_size() which was only added to uClibc-ng in 1.0.29. 2018.02.x still uses 1.0.28, so disable this feature when building on uClibc. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/mosquitto/mosquitto.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/mosquitto/mosquitto.mk b/package/mosquitto/mosquitto.mk
index fcce0535cb..d01811e5aa 100644
--- a/package/mosquitto/mosquitto.mk
+++ b/package/mosquitto/mosquitto.mk
@@ -17,6 +17,13 @@ MOSQUITTO_MAKE_OPTS = \
WITH_WRAP=no \
WITH_DOCS=no
+# uses malloc_usable_size which was only added in uClibc-ng 1.0.29
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+MOSQUITTO_MAKE_OPTS += WITH_MEMORY_TRACKING=no
+else
+MOSQUITTO_MAKE_OPTS += WITH_MEMORY_TRACKING=yes
+endif
+
# adns uses getaddrinfo_a
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
MOSQUITTO_MAKE_OPTS += WITH_ADNS=yes