From 51274db7516bf67a594f9e19ec1c4f71e908a113 Mon Sep 17 00:00:00 2001 From: Nicolas Reynolds Date: Sun, 19 Feb 2012 20:37:29 -0300 Subject: libwebkit: disable jit on mips64el only --- extra/libwebkit/PKGBUILD | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/extra/libwebkit/PKGBUILD b/extra/libwebkit/PKGBUILD index 7c05826eb..0536be453 100644 --- a/extra/libwebkit/PKGBUILD +++ b/extra/libwebkit/PKGBUILD @@ -20,12 +20,14 @@ build() { cd "$srcdir/webkit-$pkgver" mkdir build-gtk{2,3} - # Fix MIPS N32 support. - sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \ - Source/JavaScriptCore/wtf/Platform.h - # Don't enable JIT even if configure finds that it's not supported. - sed -i 's/#define ENABLE_JIT 1/#define ENABLE_JIT 0/' \ - Source/JavaScriptCore/wtf/Platform.h + if [ "$CARCH" = "mips64el" ]; then + # Fix MIPS N32 support. + sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \ + Source/JavaScriptCore/wtf/Platform.h + # Don't enable JIT even if configure finds that it's not supported. + sed -i 's/#define ENABLE_JIT 1/#define ENABLE_JIT 0/' \ + Source/JavaScriptCore/wtf/Platform.h + fi ( cd build-gtk2 && _build --with-gtk=2.0 ) ( cd build-gtk3 && _build --with-gtk=3.0 ) -- cgit v1.2.3-54-g00ecf