diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115_115.17.0.bb b/meta-oe/recipes-extended/mozjs/mozjs-115_115.17.0.bb index ca92f2cced5..d5dfef9fb0c 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-115_115.17.0.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-115_115.17.0.bb @@ -70,11 +70,14 @@ ICU:powerpc:toolchain-clang = "" LDFLAGS:append:riscv32 = " -latomic" +TARGETSYS ?= "${RUST_HOST_SYS}" +TARGETSYS:riscv32 = "${HOST_SYS}" + do_configure() { cd ${B} python3 ${S}/configure.py \ --enable-project=js \ - --target=${RUST_HOST_SYS} \ + --target=${TARGETSYS} \ --host=${BUILD_SYS} \ --prefix=${prefix} \ --libdir=${libdir} \ diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb b/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb index 0fbf3d43f91..967db0627fb 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb @@ -66,11 +66,15 @@ ICU:powerpc:toolchain-clang = "" LDFLAGS:append:riscv32 = " -latomic" +TARGETSYS ?= "${RUST_HOST_SYS}" +TARGETSYS:riscv32 = "${HOST_SYS}" +TARGETSYS:riscv64 = "${HOST_SYS}" + do_configure() { cd ${B} python3 ${S}/configure.py \ --enable-project=js \ - --target=${RUST_HOST_SYS} \ + --target=${TARGETSYS} \ --host=${BUILD_SYS} \ --prefix=${prefix} \ --libdir=${libdir} \