# HG changeset patch # User Wolfgang Rosenauer # Date 1496562588 -7200 # Node ID 224d8137f02ca1a9875eef87208d71dd951204ca # Parent 188c3f40f0da2657eaf5b6f7816d2030e6ece239 remove -fno-inline-small-functions and explicitely optimize with -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105) diff -r 188c3f40f0da -r 224d8137f02c MozillaFirefox/MozillaFirefox.changes --- 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,4 +1,10 @@ ------------------------------------------------------------------- +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 - switch to Mozilla's geolocation service (boo#1026989) diff -r 188c3f40f0da -r 224d8137f02c MozillaFirefox/MozillaFirefox.spec --- 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