forked from mirrors/nixpkgs
bind: Fix cross-compilation
This commit is contained in:
parent
085bfcefb9
commit
a1e219e562
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue