diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-10 03:31:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-10 03:31:22 +0000 |
commit | 95a57691ddfa6888858c368cd68dba127e709c67 (patch) | |
tree | bc388d88fb18de04ef18603b1cd8086838d1b719 /eclass/toolchain-funcs.eclass | |
parent | Stable for HPPA (bug #408555). (diff) | |
download | historical-95a57691ddfa6888858c368cd68dba127e709c67.tar.gz historical-95a57691ddfa6888858c368cd68dba127e709c67.tar.bz2 historical-95a57691ddfa6888858c368cd68dba127e709c67.zip |
have tc-is-cross-compiler default to CHOST if CTARGET isnt set #414527 by Raúl Porcel
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index cd4941435ab1..5731c9239622 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.109 2011/12/10 19:45:00 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.110 2012/05/10 03:31:22 vapier Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -187,6 +187,7 @@ tc-is-cross-compiler() { # softfloat flags in the case where support is optional, but # rejects softfloat flags where the target always lacks an fpu. tc-is-softfloat() { + local CTARGET=${CTARGET:-${CHOST}} case ${CTARGET} in bfin*|h8300*) echo "only" ;; |