From 4ac5d226541c32622730d7d6c967457c7ec6bc38 Mon Sep 17 00:00:00 2001 From: DavHau Date: Sun, 13 Dec 2020 21:19:50 +0700 Subject: [PATCH] autoPatchelfHook: fix bug introduced by #101142 --- pkgs/build-support/setup-hooks/auto-patchelf.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.sh b/pkgs/build-support/setup-hooks/auto-patchelf.sh index 49e84f84ceb..cfca3f1c904 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.sh +++ b/pkgs/build-support/setup-hooks/auto-patchelf.sh @@ -129,8 +129,7 @@ autoPatchelfFile() { # clear the RPATH first. runPatchelf --remove-rpath "$toPatch" - local missing - missing="$( + local missing="$( ldd "$toPatch" 2> /dev/null | \ sed -n -e 's/^[\t ]*\([^ ]\+\) => not found.*/\1/p' )"