commit: 242b3def5a4b09ecf69900366533df9456a89ad3
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 16 16:18:51 2016 +0000
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 16:18:51 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=242b3def
eclass/mozcoreconf-v4 : append flags for gcc-6 support
eclass/mozcoreconf-v4.eclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass
index 2ab508b..9d0334a 100644
--- a/eclass/mozcoreconf-v4.eclass
+++ b/eclass/mozcoreconf-v4.eclass
@@ -208,6 +208,11 @@ mozconfig_init() {
;;
esac
+ # We need to append flags for gcc-6 support
+ if [[ $(gcc-major-version) -ge 6 ]]; then
+ append-cxxflags -fno-delete-null-pointer-checks
-fno-lifetime-dse -fno-schedule-insns2
+ fi
+
# Go a little faster; use less RAM
append-flags "$MAKEEDIT_FLAGS"