/[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.11 Revision 1.13
1# Copyright 1999-2002 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.13 2003/03/04 22:07:17 verwilst Exp $
4#
3# Author Bart Verwilst <verwilst@gentoo.org> 5# Author Bart Verwilst <verwilst@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.11 2002/12/22 12:11:56 cretin Exp $
5 6
6ECLASS=flag-o-matic 7ECLASS=flag-o-matic
7INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
8 9
9# 10#
25# good options. 26# good options.
26# 27#
27#### get-flag <flag> #### 28#### get-flag <flag> ####
28# Find and echo the value for a particular flag 29# Find and echo the value for a particular flag
29# 30#
31
32ALLOWED_FLAGS="-O -mcpu -march -pipe -g"
33
30 34
31filter-flags () { 35filter-flags () {
32 36
33 for x in $1 37 for x in $1
34 do 38 do
67 71
68strip-flags() { 72strip-flags() {
69 73
70 local NEW_CFLAGS="" 74 local NEW_CFLAGS=""
71 local NEW_CXXFLAGS="" 75 local NEW_CXXFLAGS=""
72
73 local ALLOWED_FLAGS="-O -mcpu -march -pipe -g"
74 76
75 set -f 77 set -f
76 78
77 for x in ${CFLAGS} 79 for x in ${CFLAGS}
78 do 80 do

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20