diff options
Diffstat (limited to 'extra/js/PKGBUILD')
-rw-r--r-- | extra/js/PKGBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/extra/js/PKGBUILD b/extra/js/PKGBUILD index 71d3ac492..3981cdb09 100644 --- a/extra/js/PKGBUILD +++ b/extra/js/PKGBUILD @@ -4,7 +4,7 @@ pkgname=js pkgver=1.8.5 pkgrel=3 pkgdesc="JavaScript interpreter and libraries" -arch=(i686 x86_64) +arch=(i686 x86_64 'mips64el') url="https://developer.mozilla.org/En/SpiderMonkey/1.8.5" license=('GPL2') depends=('nspr' 'gcc-libs') @@ -18,10 +18,18 @@ md5sums=('a4574365938222adca0a6bd33329cb32' build() { cd "$srcdir/$pkgname-$pkgver/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 + patch -Np0 -i $srcdir/js185-destdir.patch ./configure --prefix=/usr --with-system-nspr \ - --enable-threadsafe + --enable-threadsafe $extraconf make } |