ccache: create symlinks to gcc lib & include in ccache-links directory

This patch fixes compilation errors when using ccache wrapper:
```
cc1: error: /nix/store/19vvbsjs6l6j0r22albzhysxfvr94imf-ccache-links/lib/gcc/*/*/include-fixed: No such file or directory
```
This commit is contained in:
Anton Fedotov 2015-12-09 08:43:38 +03:00 committed by Федотов Антон
parent 84c3b5f71f
commit cbe786a530

View File

@ -49,6 +49,9 @@ stdenv.mkDerivation {
ln -s ${gcc.cc}/bin/$executable $out/bin/$executable
fi
done
for file in $(ls ${gcc.cc} | grep -vw bin); do
ln -s ${gcc.cc}/$file $out/$file
done
'');
};