/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

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

Revision 1.48 Revision 1.49
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/flag-o-matic.eclass,v 1.48 2004/05/06 02:36:37 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.49 2004/05/11 13:02:05 vapier Exp $
4# 4#
5# Author Bart Verwilst <verwilst@gentoo.org> 5# Author Bart Verwilst <verwilst@gentoo.org>
6 6
7ECLASS=flag-o-matic 7ECLASS=flag-o-matic
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
181 181
182 local NEW_CFLAGS="" 182 local NEW_CFLAGS=""
183 local NEW_CXXFLAGS="" 183 local NEW_CXXFLAGS=""
184 184
185 # Allow unstable C[XX]FLAGS if we are using unstable profile ... 185 # Allow unstable C[XX]FLAGS if we are using unstable profile ...
186 if [ `has ~${ARCH} ${ACCEPT_KEYWORDS}` ] ; then 186 if has ~${ARCH} ${ACCEPT_KEYWORDS} ; then
187 [ `use debug` ] && einfo "Enabling the use of some unstable flags" 187 use debug && einfo "Enabling the use of some unstable flags"
188 ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}" 188 ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}"
189 fi 189 fi
190 190
191 set -f 191 set -f
192 192
224 NEW_CXXFLAGS="${NEW_CXXFLAGS} -O2" 224 NEW_CXXFLAGS="${NEW_CXXFLAGS} -O2"
225 fi 225 fi
226 226
227 set +f 227 set +f
228 228
229 [ `use debug` ] \ 229 use debug \
230 && einfo "CFLAGS=\"${NEW_CFLAGS}\"" \ 230 && einfo "CFLAGS=\"${NEW_CFLAGS}\"" \
231 && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\"" 231 && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\""
232 232
233 export CFLAGS="${NEW_CFLAGS}" 233 export CFLAGS="${NEW_CFLAGS}"
234 export CXXFLAGS="${NEW_CXXFLAGS}" 234 export CXXFLAGS="${NEW_CXXFLAGS}"

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

  ViewVC Help
Powered by ViewVC 1.1.20