* 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:
parent
4e65c8aa2a
commit
d67f1d269e
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue