Skip to content

Commit

Permalink
mozjs-115: Fix build on riscv32
Browse files Browse the repository at this point in the history
Link with libatomic explicitly, fixes
riscv32-yoe-linux-ld.lld: error: undefined symbol: __atomic_store_8

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Sep 17, 2024
1 parent 3a3359b commit 3099f4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta-oe/recipes-extended/mozjs/mozjs-115_115.11.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3099f4b

Please sign in to comment.