package/mosquitto: fix static build with openssl
PATCH 1/1 package/mosquitto: fix static build with openssl
mosquitto library can be built statically since commit a95bdd964761ec69a23174f5213dd54b77d0971b however build fails with openssl because mosquitto does not use pkg-config to retrieve static dependencies so provide them through the STATIC_LIB_DEPS variable
Fixes:
- http://autobuild.buildroot.org/results/2ee69a5d7834c9a4845ebde801be6aa8f97cc5fa
--- package/mosquitto/mosquitto.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
package/mosquitto/mosquitto.mk +4 -2
@@ -48,8 +48,10 @@ MOSQUITTO_MAKE_OPTS += WITH_THREADING=no endif ifeq ($(BR2_PACKAGE_LIBOPENSSL),y) -MOSQUITTO_DEPENDENCIES += libopenssl -MOSQUITTO_MAKE_OPTS += WITH_TLS=yes +MOSQUITTO_DEPENDENCIES += host-pkgconf libopenssl +MOSQUITTO_MAKE_OPTS += \ + WITH_TLS=yes \ + STATIC_LIB_DEPS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`" else MOSQUITTO_MAKE_OPTS += WITH_TLS=no endif
Signature · 1 line
2.20.1
Thomas Petazzoni
AppliedPATCH 1/1 package/mosquitto: fix static build with openssl
Quoted 5 lines · On Sun, 4 Aug 2019 22:44:58 +0200 Fabrice Fontaine…
mosquitto library can be built statically since commit
a95bdd964761ec69a23174f5213dd54b77d0971bhowever build fails with openssl because mosquitto does not use pkg-config to retrieve static dependencies so provide them through theSTATIC_LIB_DEPSvariable
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/2ee69a5d7834c9a4845ebde801be6aa8f97cc5faSigned-off-by Fabrice Fontaine <[email protected]>--- package/mosquitto/mosquitto.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com