config BR2_PACKAGE_MOSQUITTO
bool "mosquitto"
- depends on !BR2_STATIC_LIBS # builds .so
help
Mosquitto is an open source message broker that implements
the MQ Telemetry Transport protocol versions 3.1 and
bool "install the mosquitto broker"
default y
depends on BR2_USE_MMU # fork()
+ depends on !BR2_STATIC_LIBS # include <dlfcn.h>
depends on BR2_PACKAGE_MOSQUITTO
help
Build and install the mosquitto broker onto target.
-comment "mosquitto broker needs a system with MMU"
- depends on BR2_PACKAGE_MOSQUITTO && !BR2_USE_MMU
-
-comment "mosquitto needs a toolchain w/ dynamic library"
+comment "mosquitto broker needs a toolchain w/ dynamic library"
+ depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS
+ depends on BR2_PACKAGE_MOSQUITTO
WITH_WRAP=no \
WITH_DOCS=no
+ifeq ($(BR2_SHARED_LIBS),y)
+MOSQUITTO_MAKE_OPTS += WITH_STATIC_LIBRARIES=no
+else
+MOSQUITTO_MAKE_OPTS += WITH_STATIC_LIBRARIES=yes
+endif
+
+ifeq ($(BR2_STATIC_LIBS),y)
+MOSQUITTO_MAKE_OPTS += WITH_SHARED_LIBRARIES=no
+else
+MOSQUITTO_MAKE_OPTS += WITH_SHARED_LIBRARIES=yes
+endif
+
# adns uses getaddrinfo_a
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
MOSQUITTO_MAKE_OPTS += WITH_ADNS=yes