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:
parent
e191e227d2
commit
349a25fb2c
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue