1 |
commit: 6eaad5d28bac53ac7fc7f7eb0c58b26ad0fde795 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 9 14:35:34 2016 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 9 14:35:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=6eaad5d2 |
7 |
|
8 |
added cxxflags to support gcc-6 compilation |
9 |
|
10 |
eclass/mozcoreconf-v4.eclass | 5 +++++ |
11 |
1 file changed, 5 insertions(+) |
12 |
|
13 |
diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass |
14 |
index 07afd44..43a585b 100644 |
15 |
--- a/eclass/mozcoreconf-v4.eclass |
16 |
+++ b/eclass/mozcoreconf-v4.eclass |
17 |
@@ -212,6 +212,11 @@ mozconfig_init() { |
18 |
;; |
19 |
esac |
20 |
|
21 |
+ # We need to append flags for gcc-6 support |
22 |
+ if [[ $(gcc-major-version) -ge 6 ]]; then |
23 |
+ append-cxxflags fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 |
24 |
+ fi |
25 |
+ |
26 |
# Go a little faster; use less RAM |
27 |
append-flags "$MAKEEDIT_FLAGS" |