diff options
author | Travis Tilley <lv@gentoo.org> | 2004-09-15 18:05:24 +0000 |
---|---|---|
committer | Travis Tilley <lv@gentoo.org> | 2004-09-15 18:05:24 +0000 |
commit | 78d798b9b926440a105512c84a79f14f53d312fa (patch) | |
tree | fde7677776e457bd861b1c5be3090974c16393f8 /eclass | |
parent | ia64 stable (Manifest recommit) (diff) | |
download | gentoo-2-78d798b9b926440a105512c84a79f14f53d312fa.tar.gz gentoo-2-78d798b9b926440a105512c84a79f14f53d312fa.tar.bz2 gentoo-2-78d798b9b926440a105512c84a79f14f53d312fa.zip |
set CCHOST to CHOST if CCHOST is unset
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 4 |
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 |