mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 05:57:28 +00:00
libbfd: add CC_FOR_BUILD into depends
Without the change cross-compiling libbfd fails as: GEN doc/bfdver.texi CCLD doc/chew.stamp ...-bash-5.1-p16/bin/bash: line 1: gcc: command not found Tested on `pkgsCross.riscv64.libbfd`.
This commit is contained in:
parent
d6411f4190
commit
58c0decef2
@ -1,4 +1,5 @@
|
||||
{ lib, stdenv
|
||||
, buildPackages
|
||||
, gnu-config, autoreconfHook, bison, binutils-unwrapped, texinfo
|
||||
, libiberty, libintl, zlib
|
||||
}:
|
||||
@ -29,6 +30,7 @@ stdenv.mkDerivation {
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ autoreconfHook bison texinfo ];
|
||||
buildInputs = [ libiberty zlib ] ++ lib.optionals stdenv.isDarwin [ libintl ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
configurePlatforms = [ "build" "host" ];
|
||||
configureFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user