| 1 | # Copyright 2007-2008 Gentoo Foundation |
1 | # Copyright 2007-2008 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.9 2008/03/06 14:44:13 zlin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.10 2008/03/11 16:39:43 ingmar Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-build.eclass |
5 | # @ECLASS: qt4-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Caleb Tennis <caleb@gentoo.org> |
7 | # Caleb Tennis <caleb@gentoo.org> |
| 8 | # @BLURB: Eclass for Qt4 split ebuilds. |
8 | # @BLURB: Eclass for Qt4 split ebuilds. |
| … | |
… | |
| 82 | replace-flags -O3 -O2 |
82 | replace-flags -O3 -O2 |
| 83 | |
83 | |
| 84 | if [[ $(gcc-fullversion) == "3.4.6" && gcc-specs-ssp ]] ; then |
84 | if [[ $(gcc-fullversion) == "3.4.6" && gcc-specs-ssp ]] ; then |
| 85 | ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" |
85 | ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" |
| 86 | append-flags -fno-stack-protector |
86 | append-flags -fno-stack-protector |
|
|
87 | fi |
|
|
88 | |
|
|
89 | # Bug 178652 |
|
|
90 | if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then |
|
|
91 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
|
|
92 | append-flags -fno-gcse |
| 87 | fi |
93 | fi |
| 88 | |
94 | |
| 89 | myconf="$(standard_configure_options) ${myconf}" |
95 | myconf="$(standard_configure_options) ${myconf}" |
| 90 | |
96 | |
| 91 | echo ./configure ${myconf} |
97 | echo ./configure ${myconf} |