summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-15 09:05:56 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-15 09:05:56 +0000
commit66dab7c8d09da56f36352e2d8771541521a34c3f (patch)
treed59a92de766169ab1149e46628f0d1c4643837f7 /eclass/toolchain-funcs.eclass
parentversion bump (diff)
downloadhistorical-66dab7c8d09da56f36352e2d8771541521a34c3f.tar.gz
historical-66dab7c8d09da56f36352e2d8771541521a34c3f.tar.bz2
historical-66dab7c8d09da56f36352e2d8771541521a34c3f.zip
tc-arch: default to $CTARGET and then fall back to $CHOST
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index cb52c9aeadf6..829afd3060d7 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.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-funcs.eclass,v 1.23 2005/01/15 01:19:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.24 2005/01/15 09:05:56 vapier Exp $
#
# Author: Toolchain Ninjas <ninjas@gentoo.org>
#
@@ -93,7 +93,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; }
local type=$1
local host=$2
- [[ -z ${host} ]] && arg=${CHOST}
+ [[ -z ${host} ]] && arg=${CTARGET:-${CHOST}}
case ${host} in
alpha*) echo alpha;;