From 84d1aa88aaaee710f813dd9657ad7c11a5ffcc093a48c2c199bba5f8b0ef79a0 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Thu, 1 Jun 2017 06:10:49 +0000 Subject: [PATCH 1/2] - explicitely optimize with -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105, boo#1042090) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=370 --- MozillaThunderbird.changes | 6 ++++++ MozillaThunderbird.spec | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/MozillaThunderbird.changes b/MozillaThunderbird.changes index 2d2916a..4dc7f6c 100644 --- a/MozillaThunderbird.changes +++ b/MozillaThunderbird.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 1 06:09:23 UTC 2017 - wr@rosenauer.org + +- explicitely optimize with -O2 for openSUSE > 13.2/Leap 42 to work + with gcc7 (boo#1040105, boo#1042090) + ------------------------------------------------------------------- Thu May 11 21:16:41 UTC 2017 - wr@rosenauer.org diff --git a/MozillaThunderbird.spec b/MozillaThunderbird.spec index 253ec31..83b5381 100644 --- a/MozillaThunderbird.spec +++ b/MozillaThunderbird.spec @@ -260,7 +260,15 @@ ac_add_options --includedir=%{_includedir} ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --enable-alsa -ac_add_options --enable-optimize +# gcc7 (boo#104105) +%if 0%{?suse_version} > 1320 +ac_add_options --enable-optimize="-g -O2" +%endif +farch %ix86 %arm +%if 0%{?suse_version} > 1230 +ac_add_options --disable-optimize +%endif +%endif %if 0%{?mozilla_use_gtk3} ac_add_options --enable-default-toolkit=cairo-gtk3 %else From 70d7ec1299e7390afaf1cd00a5abc9947396fe776b7f3e4a2612fc109cae7968 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Thu, 1 Jun 2017 06:14:33 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=371 --- MozillaThunderbird.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MozillaThunderbird.spec b/MozillaThunderbird.spec index 83b5381..858cce9 100644 --- a/MozillaThunderbird.spec +++ b/MozillaThunderbird.spec @@ -264,7 +264,7 @@ ac_add_options --enable-alsa %if 0%{?suse_version} > 1320 ac_add_options --enable-optimize="-g -O2" %endif -farch %ix86 %arm +%ifarch %ix86 %arm %if 0%{?suse_version} > 1230 ac_add_options --disable-optimize %endif