summaryrefslogtreecommitdiff
path: root/newmoon/newmoon.spec
diff options
context:
space:
mode:
Diffstat (limited to 'newmoon/newmoon.spec')
-rw-r--r--newmoon/newmoon.spec10
1 files changed, 4 insertions, 6 deletions
diff --git a/newmoon/newmoon.spec b/newmoon/newmoon.spec
index 96b271b..ad8c665 100644
--- a/newmoon/newmoon.spec
+++ b/newmoon/newmoon.spec
@@ -124,12 +124,10 @@ sed -i -r -e '/enable-optimize/s/"\s*$/ -Wno-format-overflow"/' ./.mozconfig
%patch0 -p1
%patch1 -p1
%patch2 -p1
-# Only do LTO on Fedora
-%if 0%{?fedora} >= 33
%patch3 -p1
-%else
-# we ned to remove the LTO options from the mozconfig for RHEL7 and RHEL8
-sed -i -r -e '/START EXPERIMENT1/,/END EXPERIMENT1/d' ./.mozconfig
+# For RHEL 7, 8 use gcc-ar so that ar has LTO support
+%if 0%{?rhel} >= 7
+echo 'export AR=/usr/bin/gcc-ar' >> ./.mozconfig
%endif
# If gcc-11 then add the trick from Gord, which affects fc34 and up
@@ -314,7 +312,7 @@ update-mime-database -n ${_datadir}/mime 1>/dev/null 2>&1 & :
%doc AUTHORS LICENSE
%changelog
-* Wed Nov 10 2021 B. Stack <bgstack15@gmail.com> - 29.4.2-2
+* Sun Nov 14 2021 B. Stack <bgstack15@gmail.com> - 29.4.2-2
- Experiment with some mozconfig entries that work for dpkg
- Experiment with LTO patch and disable-gold
bgstack15