about summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-04-04 19:54:28 +0200
committerVladimír Čunát <v@cunat.cz>2022-04-04 19:54:28 +0200
commitc1ef87e8d02273c9814444cedb3bac6669e07834 (patch)
tree0cabfeaed4dba45bdd2bca6d7568d6033e621206 /pkgs/stdenv
parent5e862dc72965ceb2f68d9c48f5780cd75fd8982a (diff)
stdenv bootstrap tools: adjust with glibc-2.34
https://hydra.nixos.org/build/171494041
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/linux/bootstrap-tools/scripts/unpack-bootstrap-tools.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/bootstrap-tools/scripts/unpack-bootstrap-tools.sh b/pkgs/stdenv/linux/bootstrap-tools/scripts/unpack-bootstrap-tools.sh
index f394869ea915b..8259ee2cafcd0 100644
--- a/pkgs/stdenv/linux/bootstrap-tools/scripts/unpack-bootstrap-tools.sh
+++ b/pkgs/stdenv/linux/bootstrap-tools/scripts/unpack-bootstrap-tools.sh
@@ -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