# HG changeset patch # User Wolfgang Rosenauer # Date 1496562490 -7200 # Node ID 14640a79141fb40c05d95d0bba4a42905c181656 # Parent 3dafce6546a43d4c1bd68010c8e1cd770424633a remove -fno-inline-small-functions and explicitely optimize with -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105) diff -r 3dafce6546a4 -r 14640a79141f MozillaFirefox/MozillaFirefox.changes --- a/MozillaFirefox/MozillaFirefox.changes Tue May 09 07:52:20 2017 +0200 +++ b/MozillaFirefox/MozillaFirefox.changes Sun Jun 04 09:48:10 2017 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org + +- remove -fno-inline-small-functions and explicitely optimize with + -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105) + +------------------------------------------------------------------- Mon May 8 08:28:17 UTC 2017 - wr@rosenauer.org - update to Firefox 52.1.1 diff -r 3dafce6546a4 -r 14640a79141f MozillaFirefox/MozillaFirefox.spec --- a/MozillaFirefox/MozillaFirefox.spec Tue May 09 07:52:20 2017 +0200 +++ b/MozillaFirefox/MozillaFirefox.spec Sun Jun 04 09:48:10 2017 +0200 @@ -295,9 +295,9 @@ export MOZ_TELEMETRY_REPORTING=1 export MOZ_GOOGLE_API_KEY=%{_google_api_key} 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 / }" @@ -337,6 +337,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 diff -r 3dafce6546a4 -r 14640a79141f MozillaFirefox/firefox-esr.changes --- a/MozillaFirefox/firefox-esr.changes Tue May 09 07:52:20 2017 +0200 +++ b/MozillaFirefox/firefox-esr.changes Sun Jun 04 09:48:10 2017 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org + +- remove -fno-inline-small-functions and explicitely optimize with + -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105) + +------------------------------------------------------------------- Mon May 8 08:28:17 UTC 2017 - wr@rosenauer.org - update to Firefox 52.1.1 diff -r 3dafce6546a4 -r 14640a79141f MozillaFirefox/firefox-esr.spec --- a/MozillaFirefox/firefox-esr.spec Tue May 09 07:52:20 2017 +0200 +++ b/MozillaFirefox/firefox-esr.spec Sun Jun 04 09:48:10 2017 +0200 @@ -296,9 +296,9 @@ export MOZ_TELEMETRY_REPORTING=1 export MOZ_GOOGLE_API_KEY=%{_google_api_key} 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 / }" @@ -338,6 +338,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