SHA256
1
0
forked from pool/usbguard
Dominique Leuenberger 2022-02-25 20:25:16 +00:00 committed by Git OBS Bridge
commit 5f7a5b93e4
2 changed files with 15 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: gcc10-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libcap-ng-devel
BuildRequires: libqb-devel
BuildRequires: libseccomp-devel
@ -94,6 +98,12 @@ software framework.
%patch0 -p1
%build
%if 0%{?suse_version} == 1500
export CXX=g++-10
# gcc10 has no gcc10-PIE yet, enforce manually (see boo#1195628 for progress)
export CPPFLAGS='-fPIE'
export LDFLAGS='-pie'
%endif
mkdir -p ./m4
autoreconf -i -s --no-recursive ./