stdenv: fix binutils' bootstrap

Co-authored-by: TredwellGit <tredwell@tutanota.com>
This commit is contained in:
Bernardo Meurer 2021-08-21 14:09:47 -07:00
parent 36aa3f6a09
commit 7bac80fef8
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -172,7 +172,7 @@ in with pkgs; rec {
for i in as ld ar ranlib nm strip readelf objdump; do
cp ${bootBinutils.out}/bin/$i $out/bin
done
cp '${lib.getLib binutils.bintools}'/lib/* "$out/lib/"
cp -r '${lib.getLib binutils.bintools}'/lib/* "$out/lib/"
chmod -R u+w $out
@ -186,6 +186,7 @@ in with pkgs; rec {
nuke-refs $out/bin/*
nuke-refs $out/lib/*
nuke-refs $out/lib/*/*
nuke-refs $out/libexec/gcc/*/*/*
nuke-refs $out/lib/gcc/*/*/*
nuke-refs $out/lib/gcc/*/*/include-fixed/*{,/*}