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 {
|
stdenv.mkDerivation (rec {
|
||||||
name = "libelf-0.8.13";
|
name = "libelf-0.8.13";
|
||||||
|
@ -10,6 +10,11 @@ stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
# For cross-compiling, native glibc is needed for the "gencat" program.
|
||||||
|
crossAttrs = {
|
||||||
|
nativeBuildInputs = [ glibc ];
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "ELF object file access library";
|
description = "ELF object file access library";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue