3
0
Fork 0
forked from mirrors/nixpkgs

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";
@ -10,6 +10,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";