SHA256
1
0
forked from pool/usbguard

Accepting request 957563 from home:rfrohl:branches:hardware

usbguard: fix build with older gcc versions

OBS-URL: https://build.opensuse.org/request/show/957563
OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=38
This commit is contained in:
2022-02-25 11:04:58 +00:00
committed by Git OBS Bridge
parent cb107280be
commit 437c1f575c
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 25 10:43:56 UTC 2022 - Robert Frohl <rfrohl@suse.com>
- Fix build for Leap and SLE by using newer gcc version
-------------------------------------------------------------------
Thu Feb 24 14:49:05 UTC 2022 - Robert Frohl <rfrohl@suse.com>

View File

@@ -39,7 +39,11 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bash-completion-devel
BuildRequires: dbus-1-glib-devel
%if 0%{?suse_version} == 1500
BuildRequires: gcc9-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libcap-ng-devel
BuildRequires: libqb-devel
BuildRequires: libseccomp-devel
@@ -94,6 +98,9 @@ software framework.
%patch0 -p1
%build
%if 0%{?suse_version} == 1500
export CXX=g++-9
%endif
mkdir -p ./m4
autoreconf -i -s --no-recursive ./