commit: ac3ad2440f9c79a2ad890efaa68097431be2ef84 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: Mon Nov 30 15:44:56 2015 +0000 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=ac3ad244
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