summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-09 10:42:23 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-09 10:42:23 -0300
commita6761f742b302bf3e0d11dc3379d22c5f4cfa862 (patch)
treee8c0a106fc65fc59992d29de53e29c4d0db4ea6b /extra
parent124239a21e7c9752673ce3882eaf482a36b1c252 (diff)
Disable optimizations (doesn't crash anymore)
Diffstat (limited to 'extra')
-rw-r--r--extra/libwebkit/PKGBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/extra/libwebkit/PKGBUILD b/extra/libwebkit/PKGBUILD
index e48a73c96..924d155e6 100644
--- a/extra/libwebkit/PKGBUILD
+++ b/extra/libwebkit/PKGBUILD
@@ -2,16 +2,16 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgbase=libwebkit
-pkgname=(libwebkit libwebkit3)
+pkgname=(libwebkit) # libwebkit3)
pkgver=1.8.3
-pkgrel=1.1
+pkgrel=1.2
pkgdesc="An opensource web content engine"
arch=('i686' 'x86_64' 'mips64el')
url="http://webkitgtk.org/"
license=('custom')
depends=('libxt' 'libxslt' 'sqlite' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant' 'libgl'
'geoclue')
-makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk2' 'gtk3' 'mesa')
+makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk2' 'mesa') # 'gtk3' 'mesa')
options=('!libtool' '!emptydirs')
source=(http://webkitgtk.org/releases/webkit-$pkgver.tar.xz
bison26.diff)
@@ -32,14 +32,19 @@ 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/JavaScriptCore/wtf/Platform.h
+
+# --disable-optimizations will add -O0
+ export CFLAGS="${CFLAGS/-O[0-9]}"
+
+ extra="--disable-fast-malloc --disable-optimizations"
fi
# clear makeflags: race during introspection.
# WebKit*.gir should be created before WebKit*.typelib, but isn't
#MAKEFLAGS=
- ( cd build-gtk2 && _build --with-gtk=2.0 )
- ( cd build-gtk3 && _build --with-gtk=3.0 )
+ ( cd build-gtk2 && _build --with-gtk=2.0 $extra )
+ # ( cd build-gtk3 && _build --with-gtk=3.0 $extra )
}
_build() {
@@ -47,7 +52,6 @@ _build() {
--enable-introspection \
--with-font-backend=freetype \
--with-unicode-backend=icu \
- --disable-fast-malloc \
--enable-spellcheck "$@"
#make all stamp-po