Skip to contentSkip to conversation

zmqpp: fix build failure

PATCH New spdawson at gmail.com 2 participants 2 messages Nov 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zmqpp: fix build failure

From: Simon Dawson <[email protected]>

The zmqpp client needs a little help to link against libpthread. Fix build failures such as the following.

http://autobuild.buildroot.net/results/d0a/d0a740d4d5414844ca7f2de266fc92223d3d20c8

---
 package/zmqpp/zmqpp.mk | 2 ++
 1 file changed, 2 insertions(+)
package/zmqpp/zmqpp.mk +2 -0
index 83e088f..4c8417f 100644
@@ -12,6 +12,7 @@ ZMQPP_LICENSE = MIT
 ZMQPP_LICENSE_FILES = LICENSE
 
 ZMQPP_MAKE_OPT = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr
+ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread
 
 ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y)
 ZMQPP_DEPENDENCIES += boost
@@ -19,6 +20,7 @@ endif
 
 define ZMQPP_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+		LDFLAGS="$(ZMQPP_LDFLAGS)" \
 		$(ZMQPP_MAKE_OPT) $(if $(BR2_PACKAGE_ZMQPP_CLIENT),all) -C $(@D)
 endef
 
Signature · 1 line
1.8.3.2