commit: a4438714b5b512324df4936f8e00d0d445ba6b6d
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 15:44:56 2015 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Dec 3 00:21:22 2015 +0000
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=a4438714
only set --host when cross-compiling, don't bother with --build it doesn't make
a difference when set
eclass/mozconfig-v6.42.eclass | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/eclass/mozconfig-v6.42.eclass b/eclass/mozconfig-v6.42.eclass
index 5a26067..21a68f2 100644
--- a/eclass/mozconfig-v6.42.eclass
+++ b/eclass/mozconfig-v6.42.eclass
@@ -249,11 +249,8 @@ mozconfig_config() {
# of --build, and --target intstead of --host.
# Note, mozilla also has --build but it does not do what you think it
does.
mozconfig_annotate '' --target="${CHOST}"
- if [[ "${CBUILD:-${CHOST}}" == "${CHOST}" ]]; then
- # apply old --build setting when not cross-compiling
- mozconfig_annotate '' --build="${CHOST}"
- else
- # set --host when cross-compiling as otherwise it won't
subconfigure
+ if [[ "${CBUILD:-${CHOST}}" != "${CHOST}" ]]; then
+ # set --host only when cross-compiling
mozconfig_annotate '' --host="${CBUILD:-${CHOST}}"
fi