mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
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 New Issue
Block a user