| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.96 2011/10/30 14:21:14 hwoarang Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.97 2011/11/02 18:01:00 jer 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>, |
| … | |
… | |
| 211 | |
211 | |
| 212 | if [[ ${CHOST} == *86*-apple-darwin* ]] ; then |
212 | if [[ ${CHOST} == *86*-apple-darwin* ]] ; then |
| 213 | # qmake bus errors with -O2 but -O3 works |
213 | # qmake bus errors with -O2 but -O3 works |
| 214 | replace-flags -O2 -O3 |
214 | replace-flags -O2 -O3 |
| 215 | fi |
215 | fi |
| 216 | |
216 | |
| 217 | # Bug 178652 |
217 | # Bug 178652 |
| 218 | if [[ $(gcc-major-version) == 3 ]] && use amd64; then |
218 | if [[ $(gcc-major-version) == 3 ]] && use amd64; then |
| 219 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
219 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
| 220 | append-flags -fno-gcse |
220 | append-flags -fno-gcse |
| 221 | fi |
221 | fi |