Accepting request 717918 from home:tomdevries:branches:devel:gcc

- Add Wno-error=odr to work around swo#24835
- Add BuildRequires xz-devel

OBS-URL: https://build.opensuse.org/request/show/717918
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=216
This commit is contained in:
Michael Matz 2019-07-23 14:54:28 +00:00 committed by Git OBS Bridge
parent 787c307ec6
commit 9cb1c9b1c3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 22 16:58:16 UTC 2019 - Tom de Vries <tdevries@suse.de>
- Add Wno-error=odr to work around swo#24835
- Add BuildRequires xz-devel
-------------------------------------------------------------------
Wed Jul 3 11:38:05 UTC 2019 - Tom de Vries <tdevries@suse.de>

View File

@ -270,6 +270,7 @@ BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: rpm-devel
BuildRequires: zlib-devel
BuildRequires: xz-devel
%if 0%{!?_without_python:1}
%if 0%{suse_version} > 1000
Requires: %{python}-base
@ -615,7 +616,7 @@ export CXX
export CFLAGS="$RPM_OPT_FLAGS"
# Add your -Wno-x/-Wno-error=y options here:
for opt in ; do
for opt in -Wno-error=odr; do
# checking for acceptance of -Wno-foo is a bit wieldy: GCC doesn't
# warn about unknown -Wno- flags, _except_ if there are other
# diagnostics as well, so let's force an uninitialized use warning