bind: Fix cross-compilation

This commit is contained in:
Shea Levy 2018-02-27 17:27:48 -05:00
parent 085bfcefb9
commit a1e219e562
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -1,5 +1,6 @@
{ stdenv, lib, fetchurl, openssl, libtool, perl, libxml2
, enableSeccomp ? false, libseccomp ? null }:
, enableSeccomp ? false, libseccomp ? null, buildPackages
}:
assert enableSeccomp -> libseccomp != null;
@ -13,6 +14,8 @@ stdenv.mkDerivation rec {
sha256 = "10iwkghl5g50b7wc17bsb9wa0dh2gd57bjlk6ynixhywz6dhx1r9";
};
preConfigure = "export AR=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}ar";
outputs = [ "out" "lib" "dev" "man" "dnsutils" "host" ];
patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++
@ -24,6 +27,10 @@ stdenv.mkDerivation rec {
STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase
BUILD_CC = "cc";
depsBuildBuild = [ buildPackages.stdenv.cc ];
configureFlags = [
"--localstatedir=/var"
"--with-libtool"
@ -39,6 +46,11 @@ stdenv.mkDerivation rec {
"--without-pkcs11"
"--without-purify"
"--without-python"
"--with-randomdev=/dev/random"
"--with-ecdsa"
"--with-gost"
"--without-eddsa"
"--with-aes"
] ++ lib.optional enableSeccomp "--enable-seccomp";
postInstall = ''