Accepting request 739091 from home:lnussel:branches:Virtualization

- use %gcc_version for cross compilers (boo#1153703)

OBS-URL: https://build.opensuse.org/request/show/739091
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=500
This commit is contained in:
Bruce Rogers 2019-10-17 14:09:45 +00:00 committed by Git OBS Bridge
parent c2d625a6fd
commit b713ff1e59
2 changed files with 9 additions and 20 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 17 09:15:07 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
- use %gcc_version for cross compilers (boo#1153703)
-------------------------------------------------------------------
Tue Oct 15 20:13:27 UTC 2019 - Bruce Rogers <brogers@suse.com>

View File

@ -257,35 +257,19 @@ BuildRequires: bluez-devel
BuildRequires: brlapi-devel
%ifnarch %{ix86} aarch64
BuildRequires: cross-aarch64-binutils
%if 0%{suse_version} > 1500
BuildRequires: cross-aarch64-gcc9
%else
BuildRequires: cross-aarch64-gcc7
%endif
BuildRequires: cross-aarch64-gcc%gcc_version
%endif
%ifnarch %{ix86} armv7hl
BuildRequires: cross-arm-binutils
%if 0%{suse_version} > 1500
BuildRequires: cross-arm-gcc9
%else
BuildRequires: cross-arm-gcc7
%endif
BuildRequires: cross-arm-gcc%gcc_version
%endif
%if %{build_x86_firmware_from_source}
%ifnarch %{ix86} x86_64
# We must cross-compile on non-x86*
BuildRequires: cross-i386-binutils
%if 0%{suse_version} > 1500
BuildRequires: cross-i386-gcc9
%else
BuildRequires: cross-i386-gcc7
%endif
BuildRequires: cross-i386-gcc%gcc_version
BuildRequires: cross-x86_64-binutils
%if 0%{suse_version} > 1500
BuildRequires: cross-x86_64-gcc9
%else
BuildRequires: cross-x86_64-gcc7
%endif
BuildRequires: cross-x86_64-gcc%gcc_version
%endif
%endif
BuildRequires: curl-devel