Skip to contentSkip to conversation

package/zmqpp: link with libatomic when needed

PATCH New Bernd Kuhls 3 participants 3 messages Aug 18, 2017 – Sep 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/zmqpp: link with libatomic when needed

Fixes
http://autobuild.buildroot.net/results/c32/c32b9b8dd00d6f6d3db27fae9d8de758a4f25138/

---
 package/zmqpp/zmqpp.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/zmqpp/zmqpp.mk +4 -0
index d651c3280..f57652746 100644
@@ -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
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/zmqpp: link with libatomic when needed

Hello,

Quoted 7 lines · Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/c32/c32b9b8dd00d6f6d3db27fae9d8de758a4f25138/

---
 package/zmqpp/zmqpp.mk | 4 ++++
 1 file changed, 4 insertions(+)

I still hate this solution, but we don't have much choice, Boost build system is really unmanageable :/ So: applied to master. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com