treewide: Depend on targetPackages.stdenv.cc.bintools instead of binutils directly
One should do this when needed executables at run time. It is more honest and cross-friendly than refering to binutils directly, if one neeeds the default binary tools for the target platform, rather than binutils in particular.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ stdenv
|
||||
, targetPackages
|
||||
, cmake
|
||||
, coreutils
|
||||
, glibc
|
||||
@@ -26,7 +27,6 @@
|
||||
, rsync
|
||||
, git
|
||||
, libgit2
|
||||
, binutils
|
||||
, fetchFromGitHub
|
||||
, paxctl
|
||||
, findutils
|
||||
@@ -250,7 +250,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# TODO: Use wrappers to get these on the PATH for swift tools, instead
|
||||
ln -s ${clang}/bin/* $out/bin/
|
||||
ln -s ${binutils}/bin/ar $out/bin/ar
|
||||
ln -s ${targetPackages.stdenv.cc.bintools}/bin/ar $out/bin/ar
|
||||
'';
|
||||
|
||||
# Hack to avoid TMPDIR in RPATHs.
|
||||
|
||||
Reference in New Issue
Block a user