/[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.29 Revision 1.30
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.29 2003/10/31 23:03:40 puggy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.30 2003/11/07 18:42:45 azarah 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"
170 break 170 break
171 fi 171 fi
172 done 172 done
173 done 173 done
174 174
175 # In case we filtered out all optimization flags fallback to -O2
176 if [ "${CFLAGS/-O}" != "${CFLAGS}" -a "${NEW_CFLAGS/-O}" = "${NEW_CFLAGS}" ]; then
177 NEW_CFLAGS="${NEW_CFLAGS} -O2"
178 fi
179 if [ "${CXXFLAGS/-O}" != "${CXXFLAGS}" -a "${NEW_CXXFLAGS/-O}" = "${NEW_CXXFLAGS}" ]; then
180 NEW_CXXFLAGS="${NEW_CXXFLAGS} -O2"
181 fi
182
175 set +f 183 set +f
176 184
177 [ `use debug` ] \ 185 [ `use debug` ] \
178 && einfo "CFLAGS=\"${NEW_CFLAGS}\"" \ 186 && einfo "CFLAGS=\"${NEW_CFLAGS}\"" \
179 && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\"" 187 && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\""

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

  ViewVC Help
Powered by ViewVC 1.1.20