treewide: Try to avoid depending on binutils directly
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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, binutils }:
|
||||
{ stdenv, fetchurl, libopcodes }:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -11,8 +11,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "19j9nwl88k660045s40cbz5zrl1wpd2mcxnnc8qqnnaj311a58qz";
|
||||
};
|
||||
|
||||
# Needs libopcodes.so from binutils for 'make check'
|
||||
buildInputs = [ binutils ];
|
||||
buildInputs = stdenv.lib.optional doCheck libopcodes;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user