aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-12-07 20:08:29 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-12-07 20:14:08 +0000
commitd5062a9afb8b740cb2cba859e70c9b44e19e6755 (patch)
treefbeaa5df2bd50874be366004006d3006835918ab
parent97b1c2842faa3bfa30f5811ffbf16d5ff9f1a479 (diff)
downloadaports-d5062a9afb8b740cb2cba859e70c9b44e19e6755.tar.bz2
aports-d5062a9afb8b740cb2cba859e70c9b44e19e6755.tar.xz
main/mozjs60: disable JIT on MIPS architectures (the JIT is incomplete)
-rw-r--r--main/mozjs60/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/mozjs60/APKBUILD b/main/mozjs60/APKBUILD
index a8b9cc3a33..5d78481538 100644
--- a/main/mozjs60/APKBUILD
+++ b/main/mozjs60/APKBUILD
@@ -34,11 +34,16 @@ build() {
touch configure
# Fix broken ARM_ARCH check which doesn't work with newer GCCs it seems.
+ # Disable JIT on MIPS, doesn't compile.
+ extra_args=""
case "$CTARGET" in
armv*)
ARM_ARCH=$(echo ${CTARGET#*armv} | sed "s|-.*||")
sed -i "s|ARM_ARCH=.*|ARM_ARCH=$ARM_ARCH|" "$builddir"/build/autoconf/arch.m4
;;
+ mips*)
+ extra_args="--disable-ion"
+ ;;
esac
export SHELL=/bin/ash
@@ -53,7 +58,7 @@ build() {
--enable-system-ffi \
--disable-optimize \
--disable-jemalloc \
- --enable-pie
+ --enable-pie $extra_args
make
}