diff options
author | 2005-01-20 18:29:13 +0000 | |
---|---|---|
committer | 2005-01-20 18:29:13 +0000 | |
commit | d76d42e0affc9dabcdc2d8b627434e0f9b920750 (patch) | |
tree | cef0543aefa75e0b102900c3a161d33ec50850f4 /eclass | |
parent | added missing jikes dependency. see #78819. (diff) | |
download | gentoo-2-d76d42e0affc9dabcdc2d8b627434e0f9b920750.tar.gz gentoo-2-d76d42e0affc9dabcdc2d8b627434e0f9b920750.tar.bz2 gentoo-2-d76d42e0affc9dabcdc2d8b627434e0f9b920750.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) |