diff options
author | Davide Pesavento <pesa@gentoo.org> | 2013-08-13 10:17:54 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2013-08-13 10:17:54 +0000 |
commit | 8d3eb3a6fe3f9537adb90947eed526bd0422aaaa (patch) | |
tree | cddcc5a66c96d3f206a90eb763c2552db8cfcd0d /eclass/qt4-build.eclass | |
parent | Loan media-libs/libjpeg-turbo src_compile() because building the java binding... (diff) | |
download | gentoo-2-8d3eb3a6fe3f9537adb90947eed526bd0422aaaa.tar.gz gentoo-2-8d3eb3a6fe3f9537adb90947eed526bd0422aaaa.tar.bz2 gentoo-2-8d3eb3a6fe3f9537adb90947eed526bd0422aaaa.zip |
Filter -fgraphite-identity on gcc 4.7 (bug 417105).
Diffstat (limited to 'eclass/qt4-build.eclass')
-rw-r--r-- | eclass/qt4-build.eclass | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass index 2fe464e71b3d..d25d5c2935ae 100644 --- a/eclass/qt4-build.eclass +++ b/eclass/qt4-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.149 2013/08/13 10:05:37 pesa Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.150 2013/08/13 10:17:54 pesa Exp $ # @ECLASS: qt4-build.eclass # @MAINTAINER: @@ -181,22 +181,27 @@ qt4-build_src_prepare() { symlink_binaries_to_buildtree fi - if [[ ${CHOST} == *86*-apple-darwin* ]]; then - # qmake bus errors with -O2 or -O3 but -O1 works - # Bug 373061 - replace-flags -O[23] -O1 - fi - if use_if_iuse c++0x; then append-cxxflags -std=c++0x fi # Bug 261632 if use ppc64; then - ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS" append-flags -mminimal-toc fi + # Bug 373061 + # qmake bus errors with -O2 or -O3 but -O1 works + if [[ ${CHOST} == *86*-apple-darwin* ]]; then + replace-flags -O[23] -O1 + fi + + # Bug 417105 + # graphite on gcc 4.7 causes miscompilations + if [[ $(gcc-version) == "4.7" ]]; then + filter-flags -fgraphite-identity + fi + # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache sed -e "/^SYSTEM_VARIABLES=/i \ CC='$(tc-getCC)'\n\ |