Accepting request 1005906 from home:ojkastl_buildservice:branches:Virtualization:containers

fix build by using FORTIFY_SOURCE=2

OBS-URL: https://build.opensuse.org/request/show/1005906
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxcfs?expand=0&rev=42
This commit is contained in:
2022-09-25 17:32:27 +00:00
committed by Git OBS Bridge
parent 7ed1ca218c
commit 5461c2406d
2 changed files with 11 additions and 0 deletions

View File

@@ -51,7 +51,11 @@ LXC but is usable by any runtime.
Summary: LXC hooks for %{name}
Group: System/Management
Requires: %{name} = %{version}
%if 0%{?sle_version} < 150000
Supplements: packageand(%{name}:liblxc1)
%else
Supplements: (%{name} and liblxc1)
%endif
BuildArch: noarch
%description hooks-lxc
@@ -63,6 +67,7 @@ with LXC for all containers.
%build
autoreconf -vif
export CPPFLAGS="-D_FORTIFY_SOURCE=2"
%configure --with-distro=opensuse
make %{?_smp_mflags}