| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 Gentoo Foundation |
| 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.133 2009/04/04 17:57:54 grobian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.134 2009/04/05 08:22:29 grobian Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: flag-o-matic.eclass |
5 | # @ECLASS: flag-o-matic.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # toolchain@gentoo.org |
7 | # toolchain@gentoo.org |
| 8 | # @BLURB: common functions to manipulate and query toolchain flags |
8 | # @BLURB: common functions to manipulate and query toolchain flags |
| … | |
… | |
| 51 | -mflat -mno-flat -mno-faster-structs -mfaster-structs \ |
51 | -mflat -mno-flat -mno-faster-structs -mfaster-structs \ |
| 52 | -m32 -m64 -mabi -mlittle-endian -mbig-endian -EL -EB -fPIC \ |
52 | -m32 -m64 -mabi -mlittle-endian -mbig-endian -EL -EB -fPIC \ |
| 53 | -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias \ |
53 | -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias \ |
| 54 | -msecure-plt -m*-toc -D* -U*" |
54 | -msecure-plt -m*-toc -D* -U*" |
| 55 | |
55 | |
| 56 | # killing these two on OSX/Intel will disable SSE, resulting in failing |
|
|
| 57 | # compilations, as the headers expect SSE to be enabled (Apple knows what |
|
|
| 58 | # hardware they run on afterall, don't they?) |
|
|
| 59 | [[ ${CHOST} == i?86-apple-darwin* ]] \ |
|
|
| 60 | && ALLOWED_FLAGS="${ALLOWED_FLAGS} -march=prescott -march=nocona" |
|
|
| 61 | |
|
|
| 62 | # {C,CXX,F,FC}FLAGS that we are think is ok, but needs testing |
56 | # {C,CXX,F,FC}FLAGS that we are think is ok, but needs testing |
| 63 | # NOTE: currently -Os have issues with gcc3 and K6* arch's |
57 | # NOTE: currently -Os have issues with gcc3 and K6* arch's |
| 64 | export UNSTABLE_FLAGS="-Os -O3 -freorder-blocks" |
58 | export UNSTABLE_FLAGS="-Os -O3 -freorder-blocks" |
| 65 | return 0 |
59 | return 0 |
| 66 | } |
60 | } |