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