summaryrefslogtreecommitdiff
path: root/extra/libwebkit/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-19 20:37:29 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-19 20:37:29 -0300
commit51274db7516bf67a594f9e19ec1c4f71e908a113 (patch)
tree6aac3ea565a97b7722d134d63642a295cb9a8694 /extra/libwebkit/PKGBUILD
parenta379247a5f187c1608664530e9ff85663eff3201 (diff)
libwebkit: disable jit on mips64el only
Diffstat (limited to 'extra/libwebkit/PKGBUILD')
-rw-r--r--extra/libwebkit/PKGBUILD14
1 files 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 )