bind: enable seccomp on linux

This commit is contained in:
Franz Pletz
2016-09-28 10:50:25 +02:00
parent 33ccf3abed
commit 96b1d15e0c
+5 -2
View File
@@ -1,4 +1,5 @@
{ stdenv, fetchurl, openssl, libtool, perl, libxml2 }: { stdenv, fetchurl, openssl, libtool, perl, libxml2
, libseccomp ? null }:
let version = "9.10.4-P3"; in let version = "9.10.4-P3"; in
@@ -15,7 +16,8 @@ stdenv.mkDerivation rec {
patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++ patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
buildInputs = [ openssl libtool perl libxml2 ]; buildInputs = [ openssl libtool perl libxml2 ] ++
stdenv.lib.optional stdenv.isLinux libseccomp;
configureFlags = [ configureFlags = [
"--localstatedir=/var" "--localstatedir=/var"
@@ -31,6 +33,7 @@ stdenv.mkDerivation rec {
"--without-pkcs11" "--without-pkcs11"
"--without-purify" "--without-purify"
"--without-python" "--without-python"
"--enable-seccomp"
]; ];
postInstall = '' postInstall = ''