summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTravis Tilley <lv@gentoo.org>2004-10-26 18:51:57 +0000
committerTravis Tilley <lv@gentoo.org>2004-10-26 18:51:57 +0000
commit4bdbc78008f29fb82a00c9d28a047aada940d6c1 (patch)
tree035e6b7a042bc479d415a9182a42128a1d2a43ec /eclass
parentmarked ~amd64 and fixed bug 69002. (Manifest recommit) (diff)
downloadgentoo-2-4bdbc78008f29fb82a00c9d28a047aada940d6c1.tar.gz
gentoo-2-4bdbc78008f29fb82a00c9d28a047aada940d6c1.tar.bz2
gentoo-2-4bdbc78008f29fb82a00c9d28a047aada940d6c1.zip
fix the slot
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 48e2046c4aa7..1038dfd7f38d 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.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/toolchain.eclass,v 1.37 2004/10/26 04:09:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.38 2004/10/26 18:51:57 lv Exp $
#
# This eclass should contain general toolchain-related functions that are
# expected to not change, or change much.
@@ -18,7 +18,11 @@ if [ "${ETYPE}" == "gcc-library" ] ; then
SLOT="${CTARGET}-${SO_VERSION_SLOT:-5}"
else
IUSE="static nls bootstrap build multilib gcj gtk f77 nocxx objc hardened uclibc n32 n64 boundschecking"
- SLOT="${CTARGET}-${PV%.*}"
+ if [ "${CHOST}" == "${CTARGET}" ] ; then
+ SLOT="${PV%.*}"
+ else
+ SLOT="${CTARGET}-${PV%.*}"
+ fi
fi