summaryrefslogtreecommitdiff
path: root/extra/webkitgtk/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/webkitgtk/PKGBUILD')
-rw-r--r--extra/webkitgtk/PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/extra/webkitgtk/PKGBUILD b/extra/webkitgtk/PKGBUILD
index 548aab32c..42150b61d 100644
--- a/extra/webkitgtk/PKGBUILD
+++ b/extra/webkitgtk/PKGBUILD
@@ -16,11 +16,6 @@ sha256sums=('6303552a39d7912725d75bc55f530cdb99171fb873e299798d0bb932d6ea76cb')
prepare() {
cd $pkgbase-$pkgver
mkdir build-gtk3
-}
-
-build() {
- cd $pkgbase-$pkgver/build-gtk3
-
if [ "$CARCH" = "mips64el" ]; then
# Fix MIPS N32 support.
sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \
@@ -28,10 +23,15 @@ build() {
# 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/WTF/wtf/Platform.h
+ fi
+}
-# --disable-optimizations will add -O0
- export CFLAGS="${CFLAGS/-O[0-9]}"
+build() {
+ cd $pkgbase-$pkgver/build-gtk3
+ if [ "$CARCH" = "mips64el" ]; then
+ # --disable-optimizations will add -O0
+ export CFLAGS="${CFLAGS/-O[0-9]}"
extra="--disable-fast-malloc --disable-optimizations"
fi