git.iko.soy/typeable/nixpkgs
on master help sign in
binutils: Fix build != host == target
commitaf8d1a4acebdb723f75c20512f4458d2bc82e8ae authorJohn Ericson <Ericson2314@Yahoo.com> dateSat 3 Jun 2017, 20:28 (9 years ago) parent2e337fe
1 file changed+2−1
pkgs/development/tools/misc/binutils/default.nix+2−1
pkgs/development/tools/misc/binutils/default.nix+2−1
@@ -50,7 +50,8 @@ stdenv.mkDerivation rec {
5050 ++ [ "info" ]
5151 ++ optional (targetPlatform == hostPlatform) "dev";
5252
53− nativeBuildInputs = [ bison ];
53+ nativeBuildInputs = [ bison ]
54+ ++ optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
5455 buildInputs = [ zlib ];
5556
5657 inherit noSysDirs;