Making gcc not depend on bootstrap-tools (by a postInstall patchelf trick)

svn path=/nixpkgs/branches/stdenv-updates/; revision=22963
This commit is contained in:
Lluís Batlle i Rossell 2010-08-05 13:39:08 +00:00
parent 6fe628b99a
commit 50f337ad01
2 changed files with 8 additions and 1 deletions

View File

@ -182,6 +182,14 @@ postInstall() {
rm -rf $out/libexec/gcc/*/*/install-tools
rm -rf $out/lib/gcc/*/*/install-tools
# More dependencies with the previous gcc or some libs (gccbug stores the build command line)
rm -rf $out/bin/gccbug
# Take out the bootstrap-tools from the rpath, as it's not needed at all having $out
for i in $out/libexec/gcc/*/*/*; do
PREV_RPATH=`patchelf --print-rpath $i`
patchelf --set-rpath `echo $PREV_RPATH | sed 's,:[^:]*bootstrap-tools/lib,,'` $i
done
# Get rid of some "fixed" header files
rm -rf $out/lib/gcc/*/*/include/root

View File

@ -23,7 +23,6 @@ stdenv.mkDerivation rec {
dontDisableStatic = if static then true else false;
doCheck = true;
meta = {