diff options
author | Fabian Groffen <grobian@gentoo.org> | 2009-04-04 17:57:54 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2009-04-04 17:57:54 +0000 |
commit | 8638637401fcf47016c9eda8966fa0c352435094 (patch) | |
tree | 9738182fb1df3caff2ee1576efb033fc808b58c4 /eclass | |
parent | trim whitespace (diff) | |
download | gentoo-2-8638637401fcf47016c9eda8966fa0c352435094.tar.gz gentoo-2-8638637401fcf47016c9eda8966fa0c352435094.tar.bz2 gentoo-2-8638637401fcf47016c9eda8966fa0c352435094.zip |
backport fix for x86-macos in filter-flags from Prefix
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 66700eeafd99..5f284e1f44dd 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.132 2009/01/21 00:42:20 gengor Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.133 2009/04/04 17:57:54 grobian Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -52,6 +52,12 @@ setup-allowed-flags() { -m32 -m64 -mabi -mlittle-endian -mbig-endian -EL -EB -fPIC \ -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias \ -msecure-plt -m*-toc -D* -U*" + + # killing these two on OSX/Intel will disable SSE, resulting in failing + # compilations, as the headers expect SSE to be enabled (Apple knows what + # hardware they run on afterall, don't they?) + [[ ${CHOST} == i?86-apple-darwin* ]] \ + && ALLOWED_FLAGS="${ALLOWED_FLAGS} -march=prescott -march=nocona" # {C,CXX,F,FC}FLAGS that we are think is ok, but needs testing # NOTE: currently -Os have issues with gcc3 and K6* arch's |