aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Simon Dawson <spdawson@gmail.com>2013-11-10 20:58:33 +0000
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-11-10 23:36:37 +0100
commitfa510dee2842201a08f01d56b6b4144bbaf1d08a (patch)
tree1fef8f5bfdbf321997a9d54df9d1bf2db83fe402
parenteb17c71dd37aae6908c97e79d2d8c3878d83c9f3 (diff)
downloadbuildroot-fa510dee2842201a08f01d56b6b4144bbaf1d08a.tar.gz
buildroot-fa510dee2842201a08f01d56b6b4144bbaf1d08a.tar.bz2
zmqpp: fix build failure
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 Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/zmqpp/zmqpp.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/zmqpp/zmqpp.mk b/package/zmqpp/zmqpp.mk
index 83e088f27c..4c8417fced 100644
--- a/package/zmqpp/zmqpp.mk
+++ b/package/zmqpp/zmqpp.mk
@@ -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