diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-11 04:23:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-11 04:23:42 +0000 |
commit | a4ecd87a442528d014d8790ebf7af6d10cd08fa5 (patch) | |
tree | 5ced9bef2b78be9a23c6de727c260958782db97b /eclass | |
parent | Added ~sparc keyword wrt bug #77455. (Manifest recommit) (diff) | |
download | gentoo-2-a4ecd87a442528d014d8790ebf7af6d10cd08fa5.tar.gz gentoo-2-a4ecd87a442528d014d8790ebf7af6d10cd08fa5.tar.bz2 gentoo-2-a4ecd87a442528d014d8790ebf7af6d10cd08fa5.zip |
dont need eutils eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 106cd40ba74e..5c4fa113c88d 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,14 +1,12 @@ # 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.20 2005/01/11 01:07:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.21 2005/01/11 04:23:42 vapier Exp $ # # Author: Toolchain Ninjas <ninjas@gentoo.org> # # This eclass contains (or should) functions to get common info # about the toolchain (libc/compiler/binutils/etc...) -inherit eutils - ECLASS=toolchain-funcs INHERITED="$INHERITED $ECLASS" @@ -61,7 +59,7 @@ tc-getBUILD_CC() { local search= if [[ -n ${CBUILD} ]] ; then - search=$(type -p "${CBUILD}-gcc") + search=$(type -p ${CBUILD}-gcc) search=${search##*/} else search=gcc @@ -91,7 +89,7 @@ tc-is-cross-compiler() { # Parse information from CBUILD/CHOST/CTARGET rather than # use external variables from the profile. tc-ninja_magic_to_arch() { -ninj() { [[ ${type} = "kern" ]] && echo $1 || echo $2 ; } +ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } local type=$1 local host=$2 |