[Buildroot] [PATCH] zyre: fix static builds

Vicente Olivert Riera Vincent.Riera at imgtec.com
Mon Aug 24 08:59:05 UTC 2015


zyre package fails to build statically, so we pass the needed libs
directly in order to fix this problem.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
---
 package/zyre/zyre.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/zyre/zyre.mk b/package/zyre/zyre.mk
index 661dddc..87ed427 100644
--- a/package/zyre/zyre.mk
+++ b/package/zyre/zyre.mk
@@ -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
-- 
1.7.1



More information about the buildroot mailing list