From 55a9d6d55888b04ec6c476399e5b98a2412995f5 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 18 Aug 2017 07:50:07 +0200 Subject: [PATCH] package/zmqpp: link with libatomic when needed Fixes http://autobuild.buildroot.net/results/c32/c32b9b8dd00d6f6d3db27fae9d8de758a4f25138/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/zmqpp/zmqpp.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/zmqpp/zmqpp.mk b/package/zmqpp/zmqpp.mk index d651c3280b..f576527463 100644 --- a/package/zmqpp/zmqpp.mk +++ b/package/zmqpp/zmqpp.mk @@ -13,6 +13,10 @@ ZMQPP_LICENSE_FILES = LICENSE ZMQPP_MAKE_OPTS = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +ZMQPP_LDFLAGS += -latomic +endif + ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y) ZMQPP_DEPENDENCIES += boost endif -- 2.30.2