* [Buildroot] [PATCH 1/1] package/pistache: link with libatomic when needed
@ 2020-08-15 20:14 Fabrice Fontaine
2020-08-16 9:28 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-08-15 20:14 UTC (permalink / raw)
To: buildroot
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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/pistache: link with libatomic when needed
2020-08-15 20:14 [Buildroot] [PATCH 1/1] package/pistache: link with libatomic when needed Fabrice Fontaine
@ 2020-08-16 9:28 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-08-16 9:28 UTC (permalink / raw)
To: buildroot
On Sat, 15 Aug 2020 22:14:15 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> 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.
It's a bit sad that they have all this logic to detect if linking with
libatomic is needed, and it doesn't work for us. Have you investigated
a bit more why it is not working ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-16 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-15 20:14 [Buildroot] [PATCH 1/1] package/pistache: link with libatomic when needed Fabrice Fontaine
2020-08-16 9:28 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.