summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-10 17:56:30 +0000
committerMike Frysinger <vapier@gentoo.org>2015-03-10 17:56:30 +0000
commit9fdd5bb6242e25d9d91e6bb4ef5efc171ccc5e9f (patch)
treea5eb06e0b388f028049c97a6a38cf086d510b98a /eclass/toolchain-funcs.eclass
parentRemove dodoc README. Fix bug 542598. (diff)
downloadgentoo-2-9fdd5bb6242e25d9d91e6bb4ef5efc171ccc5e9f.tar.gz
gentoo-2-9fdd5bb6242e25d9d91e6bb4ef5efc171ccc5e9f.tar.bz2
gentoo-2-9fdd5bb6242e25d9d91e6bb4ef5efc171ccc5e9f.zip
econf_build: set --host=${CBUILD} otherwise we get the cross-compile target as the host
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass5
1 files changed, 3 insertions, 2 deletions
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