summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-07 01:44:14 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-07 01:44:14 +0000
commit9b38f1f60399f72e59f269f6c084be3fca6e839f (patch)
tree98a232e859f4f56d76e12dec328259103ee5bdf5 /eclass/toolchain.eclass
parentbuilt_with_use() (diff)
downloadgentoo-2-9b38f1f60399f72e59f269f6c084be3fca6e839f.tar.gz
gentoo-2-9b38f1f60399f72e59f269f6c084be3fca6e839f.tar.bz2
gentoo-2-9b38f1f60399f72e59f269f6c084be3fca6e839f.zip
encode CTARGET into CATEGORY until portage can give us a proper SLOT solution
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 408f2daa4983..786c5023aacd 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.63 2004/12/07 00:09:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.64 2004/12/07 01:42:33 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
@@ -31,6 +31,11 @@ toolchain_pkg_setup() {
#---->> globals <<----
export CTARGET="${CTARGET:-${CHOST}}"
+if [[ ${CTARGET} = ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET="${CATEGORY/cross-}"
+ fi
+fi
MY_PV_FULL="$(get_version_component_range 1-3)"
MY_PV="$(get_version_component_range 1-2)"