summaryrefslogtreecommitdiff
path: root/extra/js185
diff options
context:
space:
mode:
Diffstat (limited to 'extra/js185')
-rw-r--r--extra/js185/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/extra/js185/PKGBUILD b/extra/js185/PKGBUILD
index 94db39ed1..28b851668 100644
--- a/extra/js185/PKGBUILD
+++ b/extra/js185/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=js185
pkgver=1.0.0
pkgrel=2
pkgdesc="JavaScript interpreter and libraries (legacy)"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
url="https://developer.mozilla.org/En/SpiderMonkey/1.8.5"
license=(MPL)
depends=(nspr gcc-libs)
@@ -17,11 +17,19 @@ md5sums=('a4574365938222adca0a6bd33329cb32')
build() {
cd js-1.8.5/js/src
+ if [ "$CARCH" = "mips64el" ]; then
+ #Force disabling JIT.
+ sed -ri 's/#define ENABLE_(JIT|ASSEMBLER) 1/#define ENABLE_\1 0/' \
+ assembler/wtf/Platform.h
+ sed -ri 's/ENABLE_(JIT|ASSEMBLER)=1/ENABLE_\1=0/' Makefile.{in,ref}
+ extraconf="--disable-methodjit --disable-tracejit"
+ fi
+
# _FORTIFY_SOURCE causes configure error
unset CPPFLAGS
./configure --prefix=/usr --with-system-nspr \
- --enable-threadsafe
+ --enable-threadsafe $extraconf
make
}