From: Mike Frysinger Date: Tue, 10 Mar 2015 17:56:30 +0000 (+0000) Subject: econf_build: set --host=${CBUILD} otherwise we get the cross-compile target as the... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9ceb11eb1097b72eb972da028a77a903f32e0b99;p=gentoo.git econf_build: set --host=${CBUILD} otherwise we get the cross-compile target as the host --- diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 0c66efe5e482..0b96aba08f94 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.132 2015/02/27 06:08:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.133 2015/03/10 17:56:30 vapier Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -297,7 +297,8 @@ tc-env_build() { # } # @CODE econf_build() { - tc-env_build econf --build=${CBUILD:-${CHOST}} "$@" + local CBUILD=${CBUILD:-${CHOST}} + tc-env_build econf --build=${CBUILD} --host=${CBUILD} "$@" } # @FUNCTION: tc-has-openmp