zyre: fix static builds
PATCH v2 1/1 zyre: fix static builds
zyre package fails to build statically, so we pass the needed libs directly in order to fix this problem.
Fixes:
http://autobuild.buildroot.net/results/0ab/0ab4c6a4bb4942d51e7712073d4731d81ecb5251/
---
Changes v1 -> v2: add "Fixes" URL.
package/zyre/zyre.mk | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
package/zyre/zyre.mk +4 -0
@@ -12,6 +12,10 @@ ZYRE_INSTALL_STAGING = YES ZYRE_DEPENDENCIES = czmq zeromq ZYRE_AUTORECONF = YES +ifeq ($(BR2_STATIC_LIBS),y) +ZYRE_CONF_ENV += LIBS="-lzmq -lstdc++ -lczmq -pthread" +endif + define ZYRE_CREATE_CONFIG_DIR mkdir -p $(@D)/config endef
Signature · 1 line
1.7.1
PATCH v2 1/1 zyre: fix static builds
Vicente,
Quoted 10 lines · Vicente Olivert Riera
zyre package fails to build statically, so we pass the needed libs directly in order to fix this problem.
Fixes:
http://autobuild.buildroot.net/results/0ab/0ab4c6a4bb4942d51e7712073d4731d81ecb5251/
Signed-off-by Vicente Olivert Riera <[email protected]>---
Changes v1 -> v2: add "Fixes" URL.
I've committed a different fix, which consists in bumping the version of zyre. In the latest (unreleased) version of Zyre, pkg-config is used to find zmq and czmq, which fixes the static linking scenario.
I've therefore marked your patch as Rejected in patchwork.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com