| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.78 2010/07/11 10:32:17 hwoarang Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.79 2010/08/08 11:34:20 armin76 Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-build.eclass |
5 | # @ECLASS: qt4-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Ben de Groot <yngwin@gentoo.org>, |
7 | # Ben de Groot <yngwin@gentoo.org>, |
| 8 | # Markos Chandras <hwoarang@gentoo.org>, |
8 | # Markos Chandras <hwoarang@gentoo.org>, |
| … | |
… | |
| 194 | if [[ ${CHOST} == *86*-apple-darwin* ]] ; then |
194 | if [[ ${CHOST} == *86*-apple-darwin* ]] ; then |
| 195 | # qmake bus errors with -O2 but -O3 works |
195 | # qmake bus errors with -O2 but -O3 works |
| 196 | replace-flags -O2 -O3 |
196 | replace-flags -O2 -O3 |
| 197 | fi |
197 | fi |
| 198 | |
198 | |
|
|
199 | if [[ ${CHOST} == arm* ]] ; then |
|
|
200 | # Fails on arm with -Os, bug 331641 |
|
|
201 | # This can be removed once qt-4.7 is stable or the bug on gcc is fixed |
|
|
202 | replace-flags -Os -O2 |
|
|
203 | fi |
|
|
204 | |
| 199 | # Bug 178652 |
205 | # Bug 178652 |
| 200 | if [[ $(gcc-major-version) == 3 ]] && use amd64; then |
206 | if [[ $(gcc-major-version) == 3 ]] && use amd64; then |
| 201 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
207 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
| 202 | append-flags -fno-gcse |
208 | append-flags -fno-gcse |
| 203 | fi |
209 | fi |