summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTravis Tilley <lv@gentoo.org>2004-09-15 18:05:24 +0000
committerTravis Tilley <lv@gentoo.org>2004-09-15 18:05:24 +0000
commit964e3e7c6f5cc16caf69ece0ad0c6b94b0e4f08e (patch)
tree2cb1a4b252d2cc276b434e9a8e7f934eac3dd6e7 /eclass
parentia64 stable (diff)
downloadhistorical-964e3e7c6f5cc16caf69ece0ad0c6b94b0e4f08e.tar.gz
historical-964e3e7c6f5cc16caf69ece0ad0c6b94b0e4f08e.tar.bz2
historical-964e3e7c6f5cc16caf69ece0ad0c6b94b0e4f08e.zip
set CCHOST to CHOST if CCHOST is unset
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 08d0a10de705..4b2668612c2f 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.16 2004/09/13 20:58:38 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.17 2004/09/15 18:05:24 lv Exp $
#
# This eclass should contain general toolchain-related functions that are
# expected to not change, or change much.
@@ -11,6 +11,8 @@ INHERITED="$INHERITED $ECLASS"
DESCRIPTION="Based on the ${ECLASS} eclass"
EXPORT_FUNCTIONS src_unpack pkg_setup src_compile src_install
+[ ! -n "${CCHOST}" ] && export CCHOST="${CHOST}"
+
if [ "${ETYPE}" == "gcc-library" ] ; then
IUSE="nls build uclibc"
if [ -n "${SO_VERSION_SLOT}" ] ; then