diff options
Diffstat (limited to 'newmoon/newmoon.spec')
-rw-r--r-- | newmoon/newmoon.spec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newmoon/newmoon.spec b/newmoon/newmoon.spec index f3c56da..7b99211 100644 --- a/newmoon/newmoon.spec +++ b/newmoon/newmoon.spec @@ -124,7 +124,13 @@ sed -i -r -e '/enable-optimize/s/"\s*$/ -Wno-format-overflow"/' ./.mozconfig %patch0 -p1 %patch1 -p1 %patch2 -p1 +# Only do LTO on Fedora and RHEL8 +%if 0%{?fedora} >= 33 || 0%{?rhel} >= 8 %patch3 -p1 +%else +# we ned to remove the LTO options from the mozconfig for RHEL7 +sed -i -r -e '/START EXPERIMENT1/,/END EXPERIMENT1/d' ./.mozconfig +%endif ! test -d %{badname}/branding/unofficial.unbuilt && { cp -pr %{badname}/branding/unofficial %{badname}/branding/unofficial.unbuilt && \ |