From 349a25fb2cfca581e03ebf52569f5d6472a1b510 Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Sun, 25 Jan 2015 21:52:09 +0100 Subject: [PATCH] libelf: Fix cross-compile by adding glibc as a native build input. TBD: This can probably be unconditional but I put it into crossAttrs to avoid a rebuild of native stuff. --- pkgs/development/libraries/libelf/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libelf/default.nix b/pkgs/development/libraries/libelf/default.nix index 407b367d6b7f..4a34ac6bdec7 100644 --- a/pkgs/development/libraries/libelf/default.nix +++ b/pkgs/development/libraries/libelf/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, gettext }: +{ fetchurl, stdenv, gettext, glibc }: stdenv.mkDerivation (rec { name = "libelf-0.8.13"; @@ -9,6 +9,11 @@ stdenv.mkDerivation (rec { }; doCheck = true; + + # For cross-compiling, native glibc is needed for the "gencat" program. + crossAttrs = { + nativeBuildInputs = [ glibc ]; + }; meta = { description = "ELF object file access library";