| 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.22 2003/06/25 19:27:33 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.23 2003/07/18 20:11:22 tester Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Bart Verwilst <verwilst@gentoo.org> |
5 | # Author Bart Verwilst <verwilst@gentoo.org> |
| 6 | |
6 | |
| 7 | ECLASS=flag-o-matic |
7 | ECLASS=flag-o-matic |
| 8 | INHERITED="$INHERITED $ECLASS" |
8 | INHERITED="$INHERITED $ECLASS" |
| … | |
… | |
| 37 | |
37 | |
| 38 | # C[XX]FLAGS that we allow in strip-flags |
38 | # C[XX]FLAGS that we allow in strip-flags |
| 39 | ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g" |
39 | ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g" |
| 40 | case "${ARCH}" in |
40 | case "${ARCH}" in |
| 41 | mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;; |
41 | mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;; |
|
|
42 | amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;; |
| 42 | esac |
43 | esac |
| 43 | |
44 | |
| 44 | # C[XX]FLAGS that we are think is ok, but needs testing |
45 | # C[XX]FLAGS that we are think is ok, but needs testing |
| 45 | # NOTE: currently -Os have issues with gcc3 and K6* arch's |
46 | # NOTE: currently -Os have issues with gcc3 and K6* arch's |
| 46 | UNSTABLE_FLAGS="-Os -O3 -freorder-blocks -fprefetch-loop-arrays" |
47 | UNSTABLE_FLAGS="-Os -O3 -freorder-blocks -fprefetch-loop-arrays" |