summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-07-15 19:53:54 -0700
committerKhem Raj <raj.khem@gmail.com>2022-07-15 20:15:08 -0700
commitc7415233074c467f12d7100635499a3e1c50fb7c (patch)
treec64f9897c12f86964b7785c6a2fa4c6065b24528
parent62fd844117653d628d6eb74f0758c5fc3ae3b6c2 (diff)
downloadmeta-openembedded-c7415233074c467f12d7100635499a3e1c50fb7c.tar.gz
poco: Link with libatomic on riscv32
It does not have compiler intrinsics for 64bit atomics Fixes MetricsSample.cpp:(.text._ZN16MetricsSampleApp4mainERKNSt3__16vectorINS0_12basic_stringIcNS0_11char_t raitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEE[_ZN16MetricsSampleApp4mainERKNSt3__16vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEE]+0x104): undefined reference to `__atomic_compare_exchange_8' Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/poco/poco_1.12.0.bb2
1 files changed, 2 insertions, 0 deletions
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 6fff0707d..428d37456 100644
--- a/meta-oe/recipes-support/poco/poco_1.12.0.bb
+++ b/meta-oe/recipes-support/poco/poco_1.12.0.bb
@@ -66,6 +66,8 @@ EXTRA_OECMAKE:append:class-native = " -DPOCO_UNBUNDLED=OFF"
66# do not use rpath 66# do not use rpath
67EXTRA_OECMAKE:append = " -DCMAKE_SKIP_RPATH=ON" 67EXTRA_OECMAKE:append = " -DCMAKE_SKIP_RPATH=ON"
68 68
69LDFLAGS:append:riscv32 = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}"
70
69python populate_packages:prepend () { 71python populate_packages:prepend () {
70 poco_libdir = d.expand('${libdir}') 72 poco_libdir = d.expand('${libdir}')
71 pn = d.getVar("PN") 73 pn = d.getVar("PN")