package/zmqpp: link with libatomic when needed
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 18 Aug 2017 05:50:07 +0000 (07:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Aug 2017 21:21:17 +0000 (23:21 +0200)
Fixes
http://autobuild.buildroot.net/results/c32/c32b9b8dd00d6f6d3db27fae9d8de758a4f25138/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/zmqpp/zmqpp.mk

index d651c3280b58a10e93d3c0e2f180dcd8ef305923..f576527463b16a079c0b25c6fa75c7dbe9fbfcf2 100644 (file)
@@ -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