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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Jun 12 17:42:28 2002 UTC (11 years, 10 months ago) by verwilst
Branch: MAIN
Changes since 1.1: +14 -0 lines
upd@te

1 verwilst 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3     # Author Bart Verwilst <verwilst@gentoo.org>
4     # /space/gentoo/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass
5     ECLASS=flag-o-matic
6    
7 verwilst 1.2 #
8     #Remove particular flags from C[XX]FLAGS
9     #
10 verwilst 1.1 filter-flags () {
11    
12     for x in $1; do
13     CFLAGS="${CFLAGS/$x}"
14     CXXFLAGS="${CXXFLAGS/$x}"
15     done
16 verwilst 1.2
17     }
18    
19     #
20     #Add flags to the current C[XX]FLAGS
21     #
22     append-flags () {
23    
24    
25     CFLAGS="$CFLAGS $1"
26     CXXFLAGS="$CXXFLAGS $1"
27 verwilst 1.1
28     }
29    
30     max-optim () {
31    
32     for x in $CFLAGS; do
33     echo $x
34     done
35    
36     }

  ViewVC Help
Powered by ViewVC 1.1.20