Link with libatomic explicitly, fixes
riscv32-yoe-linux-ld.lld: error: undefined symbol: __atomic_store_8

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-extended/mozjs/mozjs-115_115.11.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115_115.11.0.bb 
b/meta-oe/recipes-extended/mozjs/mozjs-115_115.11.0.bb
index 4a0baf5fa6..f25c5a8f95 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs-115_115.11.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs-115_115.11.0.bb
@@ -67,6 +67,8 @@ ICU ?= "--with-system-icu"
 ICU:mipsarch = ""
 ICU:powerpc:toolchain-clang = ""
 
+LDFLAGS:append:riscv32 = " -latomic"
+
 do_configure() {
     cd ${B}
     python3 ${S}/configure.py \
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112337): 
https://lists.openembedded.org/g/openembedded-devel/message/112337
Mute This Topic: https://lists.openembedded.org/mt/108496744/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to