[PATCH] poco: Link with libatomic on mips


Khem Raj
 

mips compiler does not provide intrinsics for 64bit atomics, use
libatomics to get them.

Signed-off-by: Khem Raj <raj.khem@...>
---
meta-oe/recipes-support/poco/poco_1.12.0.bb | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-support/poco/poco_1.12.0.bb b/meta-oe/recipes-support/poco/poco_1.12.0.bb
index 428d374569..c3b52c8885 100644
--- a/meta-oe/recipes-support/poco/poco_1.12.0.bb
+++ b/meta-oe/recipes-support/poco/poco_1.12.0.bb
@@ -67,6 +67,7 @@ EXTRA_OECMAKE:append:class-native = " -DPOCO_UNBUNDLED=OFF"
EXTRA_OECMAKE:append = " -DCMAKE_SKIP_RPATH=ON"

LDFLAGS:append:riscv32 = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}"
+LDFLAGS:append:mips = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}"

python populate_packages:prepend () {
poco_libdir = d.expand('${libdir}')
--
2.37.1

Join openembedded-devel@lists.openembedded.org to automatically receive all group messages.