From 242b3def5a4b09ecf69900366533df9456a89ad3 Mon Sep 17 00:00:00 2001 From: "Jory A. Pratt" Date: Sun, 16 Oct 2016 11:18:51 -0500 Subject: [PATCH] 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 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" -- 2.26.2