eclass/mozcoreconf-v4 : append flags for gcc-6 support
authorJory A. Pratt <anarchy@gentoo.org>
Sun, 16 Oct 2016 16:18:51 +0000 (11:18 -0500)
committerJory A. Pratt <anarchy@gentoo.org>
Sun, 16 Oct 2016 16:18:51 +0000 (11:18 -0500)
eclass/mozcoreconf-v4.eclass

index 2ab508b5dbd83c8f73d3c78490207c6540b801ee..9d0334a189cffbc8f05e66ee686740f9c69aec58 100644 (file)
@@ -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"