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