let's patch all our glibc thingies!!

svn path=/nixpkgs/branches/nixos-pkgs/; revision=1826
This commit is contained in:
Armijn Hemel 2004-12-01 15:39:39 +00:00
parent fbce69c4ac
commit 222cedd14b
2 changed files with 3 additions and 1 deletions

View File

@ -70,6 +70,7 @@ rec {
url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/glibc-2.3.3-static-2.tar.gz;
pkgname = "glibc";
patchelf = ./patchelf-static/patchelf;
find = findutils;
postprocess = ./scripts/add-symlink.sh;
extra = linuxHeaders;
extra2 = coreutils;

View File

@ -1,4 +1,5 @@
$extra2/bin/chmod u+w $out/include
(cd $out/include && $extra2/bin/ln -s $extra/include/* .) || exit 1
$patchelf --interpreter $out/lib/ld-linux.so.2 *
cd $out
$findutils/bin/find . | $findutils/bin/xargs $patchelf --interpreter $out/lib/ld-linux.so.2 --shrink-rpath