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.
This commit is contained in:
Ambroz Bizjak 2015-01-25 21:52:09 +01:00
parent e191e227d2
commit 349a25fb2c

View File

@ -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";