From 821b2748fe4e1068e76a8cc4eb4d3f58ad36c77a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 11 Jan 2005 04:23:42 +0000 Subject: [PATCH] dont need eutils eclass --- eclass/toolchain-funcs.eclass | 8 +++----- 1 file 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 # # 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 -- 2.26.2