about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/auto-patchelf/setup-hook.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/auto-patchelf/setup-hook.sh b/pkgs/build-support/auto-patchelf/setup-hook.sh
index 51a6a888..0592e998 100644
--- a/pkgs/build-support/auto-patchelf/setup-hook.sh
+++ b/pkgs/build-support/auto-patchelf/setup-hook.sh
@@ -111,6 +111,8 @@ autoPatchelfFile() {
             @sed@ -n -e 's/^[\t ]*\([^ ]\+\) => not found.*/\1/p'
     )"
 
+    local -i depNotFound=0
+
     for dep in $missing; do
         echo -n "  $dep -> " >&2
         if findDependency "$dep" "$(getSoArch "$toPatch")"; then
@@ -118,9 +120,12 @@ autoPatchelfFile() {
             echo "found: $foundDependency" >&2
         else
             echo "not found!" >&2
+            depNotFound=1
         fi
     done
 
+    [ $depNotFound -eq 0 ]
+
     if [ -n "$rpath" ]; then
         echo "setting RPATH to: $rpath" >&2
         @patchelf@ --set-rpath "$rpath" "$toPatch"