[meta-oe][PATCH 1/2] sdbus-c++: Link with libatomic for rv32


Khem Raj
 

Fixes
libsdbus-c++.so.1.1.0: undefined reference to `__atomic_load_8'

Signed-off-by: Khem Raj <raj.khem@...>
---
meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb
index 03d1356042..107dbc6c9d 100644
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
# libsdbus-c++.so.1.1.0: undefined reference to `__atomic_load_8'
LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed"
LDFLAGS:append:powerpc = " -Wl,--no-as-needed -latomic -Wl,--as-needed"
+LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed"

do_install:append() {
if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
--
2.36.1

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