From 81795c233e548d0125dcc3b8b89e5cfedd40a66f189c523c8ba20aea9008a040 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Mon, 24 Jan 2022 08:24:06 +0000 Subject: [PATCH] Accepting request 948330 from home:marxin:branches:mozilla:Factory - Enable -fimplicit-constexpr for GCC 12+. OBS-URL: https://build.opensuse.org/request/show/948330 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=954 --- MozillaFirefox.changes | 5 +++++ MozillaFirefox.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 4d6df0e..9ad8995 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 24 07:42:03 UTC 2022 - Martin Liška + +- Enable -fimplicit-constexpr for GCC 12+. + ------------------------------------------------------------------- Thu Jan 20 23:21:44 UTC 2022 - Andreas Stieger diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 01ae667..77cc1a2 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -401,6 +401,9 @@ export CC=gcc-9 %if 0%{?clang_build} == 0 export CC=gcc export CXX=g++ +%if 0%{?gcc_version:%{gcc_version}} >= 12 +export CFLAGS="$CFLAGS -fimplicit-constexpr" +%endif %endif %endif %ifarch %arm %ix86