stdenv bootstrap tools: adjust with glibc-2.34

https://hydra.nixos.org/build/171494041
This commit is contained in:
Vladimír Čunát 2022-04-04 19:54:28 +02:00
parent 5e862dc729
commit c1ef87e8d0
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -29,8 +29,9 @@ for i in $out/bin/* $out/libexec/gcc/*/*/*; do
./patchelf --set-interpreter $LD_BINARY --set-rpath $out/lib --force-rpath "$i"
done
# With glibc-2.34 the librt so-file is named a bit differently and doesn't need patchelfing.
for i in $out/lib/librt-*.so $out/lib/libpcre*; do
if [ -L "$i" ]; then continue; fi
if [ -L "$i" ] || [ ! -e "$i" ]; then continue; fi
echo patching "$i"
$out/bin/patchelf --set-rpath $out/lib --force-rpath "$i"
done