diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-01-20 18:29:13 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-01-20 18:29:13 +0000 |
commit | c2ca61cb07546985c575cb3e0ccaa19b1e1cfb13 (patch) | |
tree | ebbe641b432cb398f2bf514f12fb41eec29f66c3 /eclass | |
parent | Stable on alpha, bug 77805. (diff) | |
download | historical-c2ca61cb07546985c575cb3e0ccaa19b1e1cfb13.tar.gz historical-c2ca61cb07546985c575cb3e0ccaa19b1e1cfb13.tar.bz2 historical-c2ca61cb07546985c575cb3e0ccaa19b1e1cfb13.zip |
Make has_m32 and has_m64 return true for amd64 multilib profiles.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index da413cb89092..f2f814c882dc 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 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.79 2004/12/25 18:45:56 chriswhite Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.80 2005/01/20 18:29:13 eradicator Exp $ # # Author Bart Verwilst <verwilst@gentoo.org> @@ -10,7 +10,7 @@ INHERITED="$INHERITED $ECLASS" IUSE="debug" # need access to emktemp() -inherit eutils toolchain-funcs +inherit eutils toolchain-funcs multilib # #### filter-flags <flags> #### @@ -365,6 +365,9 @@ has_m32() { # actually -WORKS-. non-multilib gcc will take both -m32 and -m64! # please dont replace this function with test_flag in some future # clean-up! + + [ "$(tc-arch)" = "amd64" ] && has_multilib_profile && return 0 + local temp="$(emktemp)" echo "int main() { return(0); }" > ${temp}.c MY_CC=$(tc-getCC) |