diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-07 22:30:24 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-07 22:30:24 +0000 |
commit | efaaf44c7b9d42a6f974a845d9d5f7a24f573aeb (patch) | |
tree | fa9c86c0279659c438b8a91e74c3ee4392aabbff /eclass/toolchain-funcs.eclass | |
parent | version 0.39.5, needed for latest profuse (diff) | |
download | historical-efaaf44c7b9d42a6f974a845d9d5f7a24f573aeb.tar.gz historical-efaaf44c7b9d42a6f974a845d9d5f7a24f573aeb.tar.bz2 historical-efaaf44c7b9d42a6f974a845d9d5f7a24f573aeb.zip |
fix how BUILD_CC is defined (you know, so it works :D)
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index d33436f173ba..f1a4eb2fcd53 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.10 2004/12/06 06:18:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.11 2004/12/07 22:30:24 vapier Exp $ # # Author: Toolchain Ninjas <ninjas@gentoo.org> # @@ -59,22 +59,24 @@ tc-getGCJ() { tc-getPROG GCJ gcj; } # Returns the name of the C compiler for build tc-getBUILD_CC() { if [ -n "${CC_FOR_BUILD}" ] ; then + export BUILD_CC="${CC_FOR_BUILD}" echo "${CC_FOR_BUILD}" return 0 fi local search= - if [ -n "${CTARGET}" ] ; then - search="$(type -p "${CTARGET}-gcc")" - elif [ -n "${CHOST}" ] ; then - search="$(type -p "${CHOST}-gcc")" + if [ -n "${CBUILD}" ] ; then + search="$(type -p "${CBUILD}-gcc")" fi if [ -n "${search}" ] ; then - echo "${search##*/}" + search="${search##*/}" else - echo "gcc" + search="gcc" fi + + export BUILD_CC="${search}" + echo "${search}" } # Quick way to export a bunch of vars at once |