diff options
Diffstat (limited to 'community/js185/PKGBUILD')
-rw-r--r-- | community/js185/PKGBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/community/js185/PKGBUILD b/community/js185/PKGBUILD index 3da079149..b20cbf9f8 100644 --- a/community/js185/PKGBUILD +++ b/community/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 } |