community/mozjs115: don't emit R_LARCH_ALIGN on loongach64

Causes build failures on loongarch64, and musl does not support it
anyway.

https://github.com/llvm/llvm-project/pull/67424
This commit is contained in:
Kevin Daudt 2024-08-17 06:07:06 +00:00 committed by Patrycja Rosa
parent 413063e1a2
commit 426556ef32

View File

@ -47,7 +47,7 @@ riscv64)
_linker="bfd"
;;
*)
makedepends="$makedepends lld17"
makedepends="$makedepends lld"
_linker="lld"
;;
esac
@ -125,6 +125,11 @@ build() {
export SHELL=/bin/ash
export RUSTFLAGS="$RUSTFLAGS -C debuginfo=1"
if [ "$CARCH" = "loongarch64" ]; then
# R_LARCH_ALIGN is not supported
export CFLAGS="$CFLAGS -mno-relax"
fi
./mach build
}