binutils: Fix build != host == target

This commit is contained in:
John Ericson 2017-06-03 20:28:29 -04:00 committed by John Ericson
parent 2e337fe969
commit af8d1a4ace

View File

@ -50,7 +50,8 @@ stdenv.mkDerivation rec {
++ [ "info" ]
++ optional (targetPlatform == hostPlatform) "dev";
nativeBuildInputs = [ bison ];
nativeBuildInputs = [ bison ]
++ optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
buildInputs = [ zlib ];
inherit noSysDirs;