/[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.27 Revision 1.29
1# Copyright 2007-2009 Gentoo Foundation 1# Copyright 2007-2009 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.27 2009/03/11 23:58:31 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.29 2009/03/28 00:21:13 gengor Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ben de Groot <yngwin@gentoo.org>, 7# Ben de Groot <yngwin@gentoo.org>,
8# Markos Chandras <hwoarang@gentoo.org>, 8# Markos Chandras <hwoarang@gentoo.org>,
133 # Don't let the user go too overboard with flags. 133 # Don't let the user go too overboard with flags.
134 strip-flags 134 strip-flags
135 replace-flags -O3 -O2 135 replace-flags -O3 -O2
136 fi 136 fi
137 137
138 # Bug 253127
139 # Unsupported old gcc versions - hardened needs this :( 138 # Unsupported old gcc versions - hardened needs this :(
140 if [[ $(gcc-major-version) -lt "4" ]] ; then 139 if [[ $(gcc-major-version) -lt "4" ]] ; then
141 ewarn "Appending -fno-stack-protector to CXXFLAGS" 140 ewarn "Appending -fno-stack-protector to CXXFLAGS"
142 append-cxxflags -fno-stack-protector 141 append-cxxflags -fno-stack-protector
143 fi 142 fi
144 143
145 # Bug 178652 144 # Bug 178652
146 if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then 145 if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then
147 ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" 146 ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS"
148 append-flags -fno-gcse 147 append-flags -fno-gcse
148 fi
149
150 # Bug 253127
151 if [[ $(gcc-major-version) -lt "4" ]] ; then
152 sed -e "/^QMAKE_CFLAGS\t/ s:$: -fno-stack-protector-all:" \
153 -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed"
149 fi 154 fi
150 155
151 # Bug 172219 156 # Bug 172219
152 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ 157 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
153 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ 158 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
224 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} 229 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR}
225 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} 230 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR}
226 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} 231 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR}
227 -demosdir ${QTDEMOSDIR} -silent -fast 232 -demosdir ${QTDEMOSDIR} -silent -fast
228 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) 233 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions)
229 $(use x86-fbsd || echo -reduce-relocations)
230 -nomake examples -nomake demos" 234 -reduce-relocations -nomake examples -nomake demos"
231 235
232 echo "${myconf}" 236 echo "${myconf}"
233} 237}
234 238
235build_directories() { 239build_directories() {

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20