/[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.160 Revision 1.162
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 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.160 2015/03/11 14:07:56 dlan Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.162 2015/03/23 02:15:14 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.
170 170
171 if [[ ${CATEGORY}/${PN} != dev-qt/qtcore ]]; then 171 if [[ ${CATEGORY}/${PN} != dev-qt/qtcore ]]; then
172 skip_qmake_build 172 skip_qmake_build
173 skip_project_generation 173 skip_project_generation
174 symlink_binaries_to_buildtree 174 symlink_binaries_to_buildtree
175 else
176 # Bug 373061
177 # qmake bus errors with -O2 or -O3 but -O1 works
178 if [[ ${CHOST} == *86*-apple-darwin* ]]; then
179 replace-flags -O[23] -O1
175 fi 180 fi
176 181
177 if use_if_iuse c++0x; then 182 # Bug 503500
178 append-cxxflags -std=c++0x 183 # undefined reference with -Os and --as-needed
184 if use x86; then
185 replace-flags -Os -O2
186 fi
179 fi 187 fi
180 188
181 # Bug 261632 189 # Bug 261632
182 if use ppc64; then 190 if use ppc64; then
183 append-flags -mminimal-toc 191 append-flags -mminimal-toc
184 fi
185
186 # Bug 373061
187 # qmake bus errors with -O2 or -O3 but -O1 works
188 if [[ ${CHOST} == *86*-apple-darwin* ]]; then
189 replace-flags -O[23] -O1
190 fi 192 fi
191 193
192 # Bug 417105 194 # Bug 417105
193 # graphite on gcc 4.7 causes miscompilations 195 # graphite on gcc 4.7 causes miscompilations
194 if [[ $(gcc-version) == "4.7" ]]; then 196 if [[ $(gcc-version) == "4.7" ]]; then
195 filter-flags -fgraphite-identity 197 filter-flags -fgraphite-identity
198 fi
199
200 if use_if_iuse c++0x; then
201 append-cxxflags -std=c++0x
196 fi 202 fi
197 203
198 # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache 204 # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache
199 sed -e "/^SYSTEM_VARIABLES=/i \ 205 sed -e "/^SYSTEM_VARIABLES=/i \
200 CC='$(tc-getCC)'\n\ 206 CC='$(tc-getCC)'\n\
324 ppc|ppc64|ppc-*) conf+=" -arch powerpc" ;; 330 ppc|ppc64|ppc-*) conf+=" -arch powerpc" ;;
325 sparc|sparc-*|sparc64-*) conf+=" -arch sparc" ;; 331 sparc|sparc-*|sparc64-*) conf+=" -arch sparc" ;;
326 x86-macos) conf+=" -arch x86" ;; 332 x86-macos) conf+=" -arch x86" ;;
327 x86|x86-*) conf+=" -arch i386" ;; 333 x86|x86-*) conf+=" -arch i386" ;;
328 alpha|arm|ia64|mips|s390) conf+=" -arch $(tc-arch)" ;; 334 alpha|arm|ia64|mips|s390) conf+=" -arch $(tc-arch)" ;;
329 arm64|hppa|sh) conf+=" -arch generic" ;; 335 arm64|hppa|sh) conf+=" -arch generic" ;;
330 *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; 336 *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;;
331 esac 337 esac
332 338
333 conf+=" -platform $(qt_mkspecs_dir)" 339 conf+=" -platform $(qt_mkspecs_dir)"
334 340

Legend:
Removed from v.1.160  
changed lines
  Added in v.1.162

  ViewVC Help
Powered by ViewVC 1.1.20