From 4cf9c947c794fe5e5906d3c5350e9aada30b31ae Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 10 Apr 2013 15:03:21 -0300 Subject: ice{ape-libre,cat,dove-libre,weasel-libre}: Add workaround for preprocessor misdetection --- libre/iceape-libre/PKGBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libre/iceape-libre') diff --git a/libre/iceape-libre/PKGBUILD b/libre/iceape-libre/PKGBUILD index 3c0d6942a..b86107e16 100644 --- a/libre/iceape-libre/PKGBUILD +++ b/libre/iceape-libre/PKGBUILD @@ -93,9 +93,11 @@ build() { rsvg-convert -w 128 -h 128 -o ${DEBIAN_BRANDING_DIR}/app-icons/iceape128.png ${DEBIAN_BRANDING_DIR}/iceape_icon_plain.svg cp "${srcdir}/mozconfig" .mozconfig - unset CPPFLAGS - CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" - CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2" + + # configure script misdetects the preprocessor without an optimization level + # https://bugs.archlinux.org/task/34644 + sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure + make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}" } -- cgit v1.2.3-54-g00ecf