summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-26 13:01:58 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-26 13:01:58 +0000
commitfcdb8f63243dfd08b10940be458162a7b6b4b993 (patch)
treee3ecb94e686b60b3847a56618647b0219237e3a3 /eclass/toolchain-funcs.eclass
parentRemoving no longer existing maude revision (diff)
downloadhistorical-fcdb8f63243dfd08b10940be458162a7b6b4b993.tar.gz
historical-fcdb8f63243dfd08b10940be458162a7b6b4b993.tar.bz2
historical-fcdb8f63243dfd08b10940be458162a7b6b4b993.zip
favor $CTARGET over $CHOST
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 337cb3603fdd..15dad08c1dbd 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.5 2004/10/19 13:23:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.6 2004/10/26 13:01:58 vapier Exp $
#
# Author: Toolchain Ninjas <ninjas@gentoo.org>
#
@@ -25,11 +25,11 @@ tc-getPROG() {
fi
# how should we handle the host/target/build ?
- if [ -n "${CHOST}" ] ; then
- search="$(type -p "${CHOST}-${prog}")"
+ if [ -n "${CTARGET}" ] ; then
+ search="$(type -p "${CTARGET}-${prog}")"
else
- if [ -n "${CTARGET}" ] ; then
- search="$(type -p "${CTARGET}-${prog}")"
+ if [ -n "${CHOST}" ] ; then
+ search="$(type -p "${CHOST}-${prog}")"
fi
fi