add build condition for seccomp support
This commit is contained in:
parent
2c6394c8cc
commit
55453dd867
@ -1,6 +1,7 @@
|
||||
%define username memcached
|
||||
%define groupname memcached
|
||||
%bcond_without sasl
|
||||
%bcond_with seccomp
|
||||
|
||||
Name: memcached
|
||||
Version: 1.5.3
|
||||
@ -20,6 +21,7 @@ BuildRequires: libevent-devel systemd-units
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Test::More), perl(Test::Harness)
|
||||
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
|
||||
%{?with_seccomp:BuildRequires: libseccomp-devel}
|
||||
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
@ -50,7 +52,8 @@ export CFLAGS="%{optflags} -pie -fpie"
|
||||
export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||
|
||||
%configure \
|
||||
%{?with_sasl: --enable-sasl}
|
||||
%{?with_sasl: --enable-sasl} \
|
||||
%{?with_seccomp: --enable-seccomp}
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user