remove -fno-inline-small-functions and explicitely optimize with firefox53
authorWolfgang Rosenauer <wr@rosenauer.org>
Sun, 04 Jun 2017 09:49:48 +0200
branchfirefox53
changeset 977 224d8137f02c
parent 967 188c3f40f0da
child 978 214d22b0c31c
remove -fno-inline-small-functions and explicitely optimize with
-O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105)
MozillaFirefox/MozillaFirefox.changes
MozillaFirefox/MozillaFirefox.spec
--- a/MozillaFirefox/MozillaFirefox.changes	Thu Apr 27 09:17:24 2017 +0200
+++ b/MozillaFirefox/MozillaFirefox.changes	Sun Jun 04 09:49:48 2017 +0200
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Jun  1 04:25:05 UTC 2017 - kah0922@gmail.com
+
+- remove -fno-inline-small-functions and explicitely optimize with
+  -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105)
+
 -------------------------------------------------------------------
 Wed Apr 26 12:37:38 UTC 2017 - wr@rosenauer.org
 
--- a/MozillaFirefox/MozillaFirefox.spec	Thu Apr 27 09:17:24 2017 +0200
+++ b/MozillaFirefox/MozillaFirefox.spec	Sun Jun 04 09:49:48 2017 +0200
@@ -92,7 +92,7 @@
 BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
 %if 0%{?firefox_use_rust}
 BuildRequires:  cargo
-BuildRequires:  rust >= 1.13
+BuildRequires:  rust >= 1.10
 BuildRequires:  rust-std
 %endif
 # libavcodec is required for H.264 support but the
@@ -289,9 +289,9 @@
 export CC=gcc-5
 %endif
 export CFLAGS="%{optflags} -fno-strict-aliasing"
-# boo#986541: add -fno-delete-null-pointer-checks and -fno-inline-small-functions for gcc6
+# boo#986541: add -fno-delete-null-pointer-checks for gcc6
 %if 0%{?suse_version} > 1320
-export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-inline-small-functions"
+export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
 %endif
 %ifarch %arm
 export CFLAGS="${CFLAGS/-g / }"
@@ -328,6 +328,10 @@
 %if 0%{?build_hardened}
 ac_add_options --enable-pie
 %endif
+# gcc7 (boo#104105)
+%if 0%{?suse_version} > 1320
+ac_add_options --enable-optimize="-g -O2"
+%endif
 %ifarch %ix86 %arm
 %if 0%{?suse_version} > 1230
 ac_add_options --disable-optimize