summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-22 15:47:47 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-22 15:47:47 -0200
commit6761ee5e5f6610b1c630f25b53a008a581571da7 (patch)
tree276783087355e7b14be63dc18c54eb9f0768562b
parent370ca9d9a962d24f8bb23f2e1db767981e9f8eef (diff)
icecat: improving pgo
-rw-r--r--libre/icecat/PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/libre/icecat/PKGBUILD b/libre/icecat/PKGBUILD
index 839e0634f..c5a35a16c 100644
--- a/libre/icecat/PKGBUILD
+++ b/libre/icecat/PKGBUILD
@@ -96,6 +96,8 @@ build() {
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/$pkgname"
export PYTHON="/usr/bin/python2"
+ export MOZ_MAKE_FLAGS="$MAKEFLAGS"
+ unset MAKEFLAGS
mv $pkgname-$pkgver $srcdir/gnuzilla-build
cd $srcdir/gnuzilla-build
@@ -137,17 +139,18 @@ build() {
if $_pgo; then
export MOZ_PGO=1
export DISPLAY=:99
- export MOZ_MAKE_FLAGS="$MAKEFLAGS"
- unset MAKEFLAGS
-
Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 $DISPLAY &
_fail=0
make -f client.mk build || _fail=1
+ else
+ _fail=0
- kill $! || true
- return $_fail
+ make -f client.mk build || _fail=1
fi
+
+ kill $! || true
+ return $_fail
}
package() {