* 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
This commit is contained in:
Eelco Dolstra 2010-01-19 17:41:54 +00:00
parent 4e65c8aa2a
commit d67f1d269e

View file

@ -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