summaryrefslogtreecommitdiff
path: root/eclass
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
commitb4f91a3eb95f558754a2f65a1ddef486314c6f17 (patch)
tree1756348e2d99e260002e6f0c44cadc4af5ef9c3c /eclass
parentFix ABI on crosscompile. (diff)
downloadgentoo-2-b4f91a3eb95f558754a2f65a1ddef486314c6f17.tar.gz
gentoo-2-b4f91a3eb95f558754a2f65a1ddef486314c6f17.tar.bz2
gentoo-2-b4f91a3eb95f558754a2f65a1ddef486314c6f17.zip
multilib_env: set DEFAULT_ABI right for mips-* and sparc-*
Diffstat (limited to '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
}