glibc: Fixed gencat and librt impurities.
Patch submitted by Jack Cummings <jack@mudshark.org> to the nix-dev mailing list in message <20120309092909.GG39859@ice9.mudshark.org>. svn path=/nixpkgs/branches/stdenv-updates/; revision=33536
This commit is contained in:
@@ -51,5 +51,11 @@ postInstall() {
|
||||
rm -f $out/lib/libgcc_s.so.1
|
||||
}
|
||||
|
||||
postFixup() {
|
||||
# libelf uses gencat, so we need to fix it's rpath so that it doesn't pick up the system rpath.
|
||||
patchelf --set-rpath $out/lib $out/bin/gencat
|
||||
# librt (used by acl, used by coreutils) links against pthread, try *not* to pick up the system one.
|
||||
patchelf --set-rpath $out/lib $out/lib/librt-*.so
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
||||
@@ -51,5 +51,12 @@ postInstall() {
|
||||
rm -f $out/lib/libgcc_s.so.1
|
||||
}
|
||||
|
||||
postFixup() {
|
||||
# libelf uses gencat, so we need to fix it's rpath so that it doesn't pick up the system rpath.
|
||||
patchelf --set-rpath $out/lib $out/bin/gencat
|
||||
# librt (used by acl, used by coreutils) links against pthread, try *not* to pick up the system one.
|
||||
patchelf --set-rpath $out/lib $out/lib/librt-*.so
|
||||
}
|
||||
|
||||
|
||||
genericBuild
|
||||
|
||||
Reference in New Issue
Block a user