package/mosquitto: fix static build with cjson
Fixes: - http://autobuild.buildroot.org/results/98e0bccf3e1a964bb6a52265bd6f11a681ec220d Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
505e7f4771
commit
5e657530a1
@ -11,6 +11,7 @@ MOSQUITTO_LICENSE_FILES = LICENSE.txt epl-v20 edl-v10
|
||||
MOSQUITTO_INSTALL_STAGING = YES
|
||||
|
||||
MOSQUITTO_MAKE_OPTS = \
|
||||
CLIENT_STATIC_LDADD="$(MOSQUITTO_STATIC_LIBS)" \
|
||||
UNAME=Linux \
|
||||
STRIP=true \
|
||||
prefix=/usr \
|
||||
@ -50,9 +51,8 @@ endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
MOSQUITTO_DEPENDENCIES += host-pkgconf openssl
|
||||
MOSQUITTO_MAKE_OPTS += \
|
||||
WITH_TLS=yes \
|
||||
CLIENT_STATIC_LDADD="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
||||
MOSQUITTO_MAKE_OPTS += WITH_TLS=yes
|
||||
MOSQUITTO_STATIC_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
||||
else
|
||||
MOSQUITTO_MAKE_OPTS += WITH_TLS=no
|
||||
endif
|
||||
@ -60,6 +60,7 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_CJSON),y)
|
||||
MOSQUITTO_DEPENDENCIES += cjson
|
||||
MOSQUITTO_MAKE_OPTS += WITH_CJSON=yes
|
||||
MOSQUITTO_STATIC_LIBS += -lcjson
|
||||
else
|
||||
MOSQUITTO_MAKE_OPTS += WITH_CJSON=no
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user