* binutils creates hard links to the programs in $out/bin in

$out/<platform>/bin.  Because the fixup phase causes those to be
  replaced by identical copies, use symlinks instead of hardlinks.
  This saves about 9 MB.

svn path=/nixpkgs/branches/stdenv-updates/; revision=19549
wip/yesman
Eelco Dolstra 15 years ago
parent 4e65c8aa2a
commit d67f1d269e
  1. 6
      pkgs/development/tools/misc/binutils/default.nix

@ -27,6 +27,12 @@ stdenv.mkDerivation rec {
if test "$noSysDirs" = "1"; then
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt
fi
# Use symlinks instead of hard links to save space ("strip" in the
# fixup phase strips each hard link separately).
for i in binutils/Makefile.in gas/Makefile.in ld/Makefile.in; do
substituteInPlace $i --replace 'ln ' 'ln -s '
done
'';
configureFlags = "--disable-werror" # needed for dietlibc build

Loading…
Cancel
Save