From 860c81d6f70aac3f653fc240e35e7d6f7e98a187 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 25 Feb 2018 14:42:23 -0500 Subject: [PATCH] ldns: Enable cross-compilation --- pkgs/development/libraries/ldns/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/ldns/default.nix b/pkgs/development/libraries/ldns/default.nix index 6c2a8f84d23..e9d81d3ab78 100644 --- a/pkgs/development/libraries/ldns/default.nix +++ b/pkgs/development/libraries/ldns/default.nix @@ -40,6 +40,9 @@ stdenv.mkDerivation rec { "--with-trust-anchor=${dns-root-data}/root.key" "--with-drill" "--disable-gost" + ] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ + "ac_cv_func_malloc_0_nonnull=yes" + "ac_cv_func_realloc_0_nonnull=yes" ]; postInstall = ''