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:
Sergei Trofimovich 2022-09-12 09:41:15 +01:00
parent d6411f4190
commit 58c0decef2

View File

@ -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 = [