diff options
-rw-r--r-- | extra/libwebkit/PKGBUILD | 14 |
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 ) |