[Buildroot] [PATCH 1/1] package/pistache: link with libatomic when needed

Fabrice Fontaine fontaine.fabrice at gmail.com
Sat Aug 15 20:14:15 UTC 2020


pistache does not mandatory link with libatomic since
https://github.com/oktal/pistache/commit/4ed3f8e148dae203730139ae3c1c4c87bfc86c02
however the logic is broken due to an unknown issue in CheckAtomic.cmake.

Instead of trying to fix it, just link with -latomic if needed

Fixes:
 - http://autobuild.buildroot.org/results/17f05238a3479f5b0c9ef8f9bb42210f6fc14fff

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/pistache/pistache.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/pistache/pistache.mk b/package/pistache/pistache.mk
index 4d6bd283ea..0ca64a05ae 100644
--- a/package/pistache/pistache.mk
+++ b/package/pistache/pistache.mk
@@ -18,4 +18,8 @@ else
 PISTACHE_CONF_OPTS += -DPISTACHE_USE_SSL=OFF
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+PISTACHE_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
+endif
+
 $(eval $(cmake-package))
-- 
2.27.0



More information about the buildroot mailing list