summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-10-07 01:22:36 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-10-07 01:22:36 +0000
commit236f88f81dc077b098f2268d548187f601a46313 (patch)
tree7fdced0065cac50fecf2e8035fac011f2856a9ff /eclass/multilib.eclass
parentFix ABI on crosscompile. (diff)
downloadhistorical-236f88f81dc077b098f2268d548187f601a46313.tar.gz
historical-236f88f81dc077b098f2268d548187f601a46313.tar.bz2
historical-236f88f81dc077b098f2268d548187f601a46313.zip
multilib_env: set DEFAULT_ABI right for mips-* and sparc-*
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r--eclass/multilib.eclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index f7f3cd7df04f..74cbd3838c0f 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -1,13 +1,12 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.35 2005/10/06 20:33:21 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.36 2005/10/07 01:22:36 eradicator Exp $
#
# Author: Jeremy Huddleston <eradicator@gentoo.org>
#
# This eclass is for all functions pertaining to handling multilib.
# configurations.
-
DESCRIPTION="Based on the ${ECLASS} eclass"
# has_multilib_profile:
@@ -594,7 +593,10 @@ multilib_env() {
export LIBDIR_n64="lib64"
export MULTILIB_ABIS="n64 n32 o32"
- export DEFAULT_ABI="n32"
+ case ${CTARGET} in
+ mips64*) export DEFAULT_ABI="n32" ;;
+ *) export DEFAULT_ABI="o32" ;;
+ esac
;;
ppc64)
export CFLAGS_ppc=${CFLAGS_ppc--m32}
@@ -626,10 +628,14 @@ multilib_env() {
export LIBDIR_sparc64="lib64"
export MULTILIB_ABIS="sparc64 sparc32"
- export DEFAULT_ABI="sparc64"
+ case ${CTARGET} in
+ sparc64*) export DEFAULT_ABI="sparc64" ;;
+ *) export DEFAULT_ABI="sparc32" ;;
+ esac
;;
*)
export MULTILIB_ABIS="default"
export DEFAULT_ABI="default"
+ ;;
esac
}