diff options
author | B. Stack <bgstack15@gmail.com> | 2021-11-10 13:33:56 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-11-10 13:33:56 -0500 |
commit | cb03c7512fdace562be98d02c5eaeda0e1b80d16 (patch) | |
tree | 23d949e5eeafd05e8b40f20c367460036fa907d7 /newmoon/newmoon.spec | |
parent | newmoon: experiment with LTO and disable-gold, rpm (diff) | |
download | stackrpms-cb03c7512fdace562be98d02c5eaeda0e1b80d16.tar.gz stackrpms-cb03c7512fdace562be98d02c5eaeda0e1b80d16.tar.bz2 stackrpms-cb03c7512fdace562be98d02c5eaeda0e1b80d16.zip |
disable lto for RHEL7
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 && \ |