mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
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:
parent
413063e1a2
commit
426556ef32
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user