/[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.1 Revision 1.2
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# Author Bart Verwilst <verwilst@gentoo.org> 3# Author Bart Verwilst <verwilst@gentoo.org>
4# /space/gentoo/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass 4# /space/gentoo/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass
5ECLASS=flag-o-matic 5ECLASS=flag-o-matic
6 6
7#
8#Remove particular flags from C[XX]FLAGS
9#
7filter-flags () { 10filter-flags () {
8 11
9 for x in $1; do 12 for x in $1; do
10 CFLAGS="${CFLAGS/$x}" 13 CFLAGS="${CFLAGS/$x}"
11 CXXFLAGS="${CXXFLAGS/$x}" 14 CXXFLAGS="${CXXFLAGS/$x}"
12 done 15 done
16
17}
18
19#
20#Add flags to the current C[XX]FLAGS
21#
22append-flags () {
23
24
25 CFLAGS="$CFLAGS $1"
26 CXXFLAGS="$CXXFLAGS $1"
13 27
14} 28}
15 29
16max-optim () { 30max-optim () {
17 31

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20