From 2c7b769dd294f27183d28ff413d947f0e99d321cb0df96bb80c740be212d992f Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Sun, 24 Jul 2016 20:58:14 +0000 Subject: [PATCH] -fno-inline-small-functions to CFLAGS OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=532 --- MozillaFirefox.changes | 2 +- MozillaFirefox.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 0d77b09..a428a9d 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -3,7 +3,7 @@ Sat Jul 23 20:13:08 UTC 2016 - antoine.belvire@laposte.net - Fix Firefox crash on startup on i586 (boo#986541): * Add -fno-delete-null-pointer-checks and - -fno-inline-small-functions to CLFAGS + -fno-inline-small-functions to CFLAGS ------------------------------------------------------------------- Tue Jul 19 20:12:11 UTC 2016 - mailaender@opensuse.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index e7505b8..dc7d60d 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -293,8 +293,11 @@ export MOZILLA_OFFICIAL=1 export BUILD_OFFICIAL=1 export MOZ_TELEMETRY_REPORTING=1 export MOZ_GOOGLE_API_KEY=%{_google_api_key} -# boo#986541: add -fno-delete-null-pointer-checks and -fno-inline-small-functions to fix Firefox on i586 -export CFLAGS="%{optflags} -fno-strict-aliasing -fno-delete-null-pointer-checks -fno-inline-small-functions" +export CFLAGS="%{optflags} -fno-strict-aliasing" +# boo#986541: add -fno-delete-null-pointer-checks and -fno-inline-small-functions for gcc6 +%if 0%{?suse_version} > 1320 +export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-inline-small-functions" +%endif %ifarch %arm export CFLAGS="${CFLAGS/-g / }" %endif