diff options
author | DavHau <hsngrmpf+github@gmail.com> | 2020-12-20 15:24:10 +0700 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-12-25 12:13:03 +0100 |
commit | 2efcf6dc260dea45238c9378653b5066d2dfad04 (patch) | |
tree | 55544475e29aca56f591af7e30804cfbc88996f0 /pkgs/build-support | |
parent | 2fde1e63ba2c8dd22bc2622ac3edb2f8c662379f (diff) |
autoPatchelf: add comment why ignore failing ldd/sed
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/auto-patchelf.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.sh b/pkgs/build-support/setup-hooks/auto-patchelf.sh index 3c0997a0dcd5..511371931de8 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.sh +++ b/pkgs/build-support/setup-hooks/auto-patchelf.sh @@ -135,6 +135,8 @@ autoPatchelfFile() { # clear the RPATH first. runPatchelf --remove-rpath "$toPatch" + # If the file is not a dynamic executable, ldd/sed will fail, + # in which case we return, since there is nothing left to do. local missing missing="$( ldd "$toPatch" 2> /dev/null | \ |