From 6164077723b2ee2d86d7d99f21e5b3d72af88af6a283b469bbe1a7f3ec7f5000 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 13 Feb 2019 07:10:01 +0000 Subject: [PATCH] Accepting request 674399 from home:marxin:branches:mozilla:Factory - Enable LTO only for latest toolchain (boo#1125038). OBS-URL: https://build.opensuse.org/request/show/674399 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=716 --- MozillaFirefox.changes | 5 +++++ MozillaFirefox.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index b2f79ab..61ce728 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 13 06:12:43 UTC 2019 - Martin Liška + +- Enable LTO only for latest new toolchain (boo#1125038). + ------------------------------------------------------------------- Mon Feb 11 10:11:45 UTC 2019 - Martin Liška diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index a37086b..9e3b0d6 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -381,8 +381,11 @@ ac_add_options --with-arch=armv7-a ac_add_options --disable-webrtc %endif %ifarch x86_64 +# LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506) +%if 0%{?suse_version} > 1500 ac_add_options --enable-lto %endif +%endif EOF ./mach build