/[gentoo-x86]/eclass/qt4-build.eclass
Gentoo

Diff of /eclass/qt4-build.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.149 Revision 1.150
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.149 2013/08/13 10:05:37 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.150 2013/08/13 10:17:54 pesa Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Qt herd <qt@gentoo.org> 7# Qt herd <qt@gentoo.org>
8# @BLURB: Eclass for Qt4 split ebuilds. 8# @BLURB: Eclass for Qt4 split ebuilds.
179 skip_qmake_build 179 skip_qmake_build
180 skip_project_generation 180 skip_project_generation
181 symlink_binaries_to_buildtree 181 symlink_binaries_to_buildtree
182 fi 182 fi
183 183
184 if [[ ${CHOST} == *86*-apple-darwin* ]]; then
185 # qmake bus errors with -O2 or -O3 but -O1 works
186 # Bug 373061
187 replace-flags -O[23] -O1
188 fi
189
190 if use_if_iuse c++0x; then 184 if use_if_iuse c++0x; then
191 append-cxxflags -std=c++0x 185 append-cxxflags -std=c++0x
192 fi 186 fi
193 187
194 # Bug 261632 188 # Bug 261632
195 if use ppc64; then 189 if use ppc64; then
196 ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS"
197 append-flags -mminimal-toc 190 append-flags -mminimal-toc
191 fi
192
193 # Bug 373061
194 # qmake bus errors with -O2 or -O3 but -O1 works
195 if [[ ${CHOST} == *86*-apple-darwin* ]]; then
196 replace-flags -O[23] -O1
197 fi
198
199 # Bug 417105
200 # graphite on gcc 4.7 causes miscompilations
201 if [[ $(gcc-version) == "4.7" ]]; then
202 filter-flags -fgraphite-identity
198 fi 203 fi
199 204
200 # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache 205 # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache
201 sed -e "/^SYSTEM_VARIABLES=/i \ 206 sed -e "/^SYSTEM_VARIABLES=/i \
202 CC='$(tc-getCC)'\n\ 207 CC='$(tc-getCC)'\n\

Legend:
Removed from v.1.149  
changed lines
  Added in v.1.150

  ViewVC Help
Powered by ViewVC 1.1.20