binutils: No more darwin conditionals

Since at least d7bddc27b2, we've had a
situation where one should depend on:

 - `stdenv.cc.bintools`: for executables at build time
 - `libbfd` or `libiberty`: for those libraries
 - `targetPackages.cc.bintools`: for exectuables at *run* time
 - `binutils`: only for specifically GNU Binutils's executables,
   regardless of the host platform, at run time.

and that commit cleaned up this usage to reflect that. This PR flips the
switch so that:

 - `binutils` is indeed unconditionally GNU Binutils
 - `binutils-raw`, which previously served that role, is gone.

so that the correct usage will be enforced going forward and everything
is simple.

N.B. In a few cases `binutils-unwrapped` (which before and now was
unconditionally actual GNU binutils), rather than `binutils` was used to
replace old `binutils-raw` as it is friendly towards some cross
compilation usage by avoiding a reference to the next bootstrapping
change.
This commit is contained in:
John Ericson
2018-04-03 12:50:25 -04:00
parent 9714501256
commit adaa110a72
7 changed files with 23 additions and 30 deletions

View File

@@ -1,15 +1,15 @@
{ stdenv, buildPackages
, fetchurl, autoreconfHook264, bison, binutils-raw
, fetchurl, autoreconfHook264, bison, binutils-unwrapped
, libiberty, libbfd
}:
stdenv.mkDerivation rec {
name = "libopcodes-${version}";
inherit (binutils-raw.bintools) version src;
inherit (binutils-unwrapped) version src;
outputs = [ "out" "dev" ];
patches = binutils-raw.bintools.patches ++ [
patches = binutils-unwrapped.patches ++ [
../../tools/misc/binutils/build-components-separately.patch
];