From: Bernd Kuhls Date: Fri, 18 Aug 2017 05:50:07 +0000 (+0200) Subject: package/zmqpp: link with libatomic when needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55a9d6d55888b04ec6c476399e5b98a2412995f5;p=buildroot.git 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 --- 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