summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2010-08-08 11:34:20 +0000
committerRaúl Porcel <armin76@gentoo.org>2010-08-08 11:34:20 +0000
commitf9c07114d2c0c0c69c142457cce23a01a0dd0c85 (patch)
tree4524ea6955c49a7bbad6df2120047db3edb69f67 /eclass
parentVersion bump (diff)
downloadgentoo-2-f9c07114d2c0c0c69c142457cce23a01a0dd0c85.tar.gz
gentoo-2-f9c07114d2c0c0c69c142457cce23a01a0dd0c85.tar.bz2
gentoo-2-f9c07114d2c0c0c69c142457cce23a01a0dd0c85.zip
Add workaround for ARM
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt4-build.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index b5e097f5c648..7ddb3e06e400 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.78 2010/07/11 10:32:17 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.79 2010/08/08 11:34:20 armin76 Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -196,6 +196,12 @@ qt4-build_src_prepare() {
replace-flags -O2 -O3
fi
+ if [[ ${CHOST} == arm* ]] ; then
+ # Fails on arm with -Os, bug 331641
+ # This can be removed once qt-4.7 is stable or the bug on gcc is fixed
+ replace-flags -Os -O2
+ fi
+
# Bug 178652
if [[ $(gcc-major-version) == 3 ]] && use amd64; then
ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS"