From 4cf9c947c794fe5e5906d3c5350e9aada30b31ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Wed, 10 Apr 2013 15:03:21 -0300 Subject: ice{ape-libre,cat,dove-libre,weasel-libre}: Add workaround for preprocessor misdetection --- libre/iceweasel-libre/PKGBUILD | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libre/iceweasel-libre') diff --git a/libre/iceweasel-libre/PKGBUILD b/libre/iceweasel-libre/PKGBUILD index 283d6e088..0c9520b17 100644 --- a/libre/iceweasel-libre/PKGBUILD +++ b/libre/iceweasel-libre/PKGBUILD @@ -143,17 +143,15 @@ build() { echo 'ac_add_options --disable-jemalloc' >> .mozconfig fi + # configure script misdetects the preprocessor without an optimization level + # https://bugs.archlinux.org/task/34644 + sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure + if $_pgo; then - unset CPPFLAGS - export CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" - export CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2" LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 :99 & LD_PRELOAD="" DISPLAY=:99 make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="$MAKEFLAGS" kill $! || true else - unset CPPFLAGS - export CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" - export CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2" LD_PRELOAD="" make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" fi } -- cgit v1.2.3-2-g168b