/[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.148 Revision 1.149
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.148 2013/07/27 23:47:20 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.149 2013/08/13 10:05:37 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.
99qt4-build_src_unpack() { 99qt4-build_src_unpack() {
100 setqtenv 100 setqtenv
101 101
102 if ! version_is_at_least 4.1 $(gcc-version); then 102 if ! version_is_at_least 4.1 $(gcc-version); then
103 ewarn "Using a GCC version lower than 4.1 is not supported." 103 ewarn "Using a GCC version lower than 4.1 is not supported."
104 elif use_if_iuse c++0x && ! version_is_at_least 4.4 $(gcc-version); then
105 ewarn "USE=c++0x requires GCC 4.4 or later."
104 fi 106 fi
105 107
106 if [[ ${CATEGORY}/${PN} == dev-qt/qtwebkit ]]; then 108 if [[ ${CATEGORY}/${PN} == dev-qt/qtwebkit ]]; then
107 eshopts_push -s extglob 109 eshopts_push -s extglob
108 if is-flagq '-g?(gdb)?([1-9])'; then 110 if is-flagq '-g?(gdb)?([1-9])'; then
183 # qmake bus errors with -O2 or -O3 but -O1 works 185 # qmake bus errors with -O2 or -O3 but -O1 works
184 # Bug 373061 186 # Bug 373061
185 replace-flags -O[23] -O1 187 replace-flags -O[23] -O1
186 fi 188 fi
187 189
188 # Bug 178652
189 if [[ $(gcc-major-version) == 3 ]] && use amd64; then
190 ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS"
191 append-flags -fno-gcse
192 fi
193
194 if use_if_iuse c++0x; then 190 if use_if_iuse c++0x; then
195 append-cxxflags -std=c++0x 191 append-cxxflags -std=c++0x
196 fi
197
198 # Unsupported old gcc versions - hardened needs this :(
199 if [[ $(gcc-major-version) -lt 4 ]]; then
200 ewarn "Appending -fno-stack-protector to CXXFLAGS"
201 append-cxxflags -fno-stack-protector
202 # Bug 253127
203 sed -e "/^QMAKE_CFLAGS\t/ s:$: -fno-stack-protector-all:" \
204 -i mkspecs/common/g++.conf || die
205 fi 192 fi
206 193
207 # Bug 261632 194 # Bug 261632
208 if use ppc64; then 195 if use ppc64; then
209 ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS" 196 ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS"

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

  ViewVC Help
Powered by ViewVC 1.1.20