summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory A. Pratt <anarchy@gentoo.org>2016-10-16 11:18:51 -0500
committerJory A. Pratt <anarchy@gentoo.org>2016-10-16 11:18:51 -0500
commit242b3def5a4b09ecf69900366533df9456a89ad3 (patch)
tree9e7b2367e898446ebad3b26919d595018d38a730 /eclass/mozcoreconf-v4.eclass
parentapp-text/openlp - remove stale builds, version bump bug #564758 (diff)
downloadgentoo-242b3def5a4b09ecf69900366533df9456a89ad3.tar.gz
gentoo-242b3def5a4b09ecf69900366533df9456a89ad3.tar.bz2
gentoo-242b3def5a4b09ecf69900366533df9456a89ad3.zip
eclass/mozcoreconf-v4 : append flags for gcc-6 support
Diffstat (limited to 'eclass/mozcoreconf-v4.eclass')
-rw-r--r--eclass/mozcoreconf-v4.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass
index 2ab508b5dbd8..9d0334a189cf 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"