summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xldd.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/xldd.in b/scripts/xldd.in
index 0c88f93..30077ad 100755
--- a/scripts/xldd.in
+++ b/scripts/xldd.in
@@ -170,12 +170,14 @@ do_find_needed() {
for d in "${needed_search_path[@]}"; do
if [ -f "${root}${d}/${needed}" ]; then
found="${d}/${needed}"
+ break
fi
done
if [ -z "${found}" ]; then
for d in "${needed_search_path[@]}"; do
if [ -f "${sysroot}${d}/${needed}" ]; then
found_sysroot="${d}/${needed}"
+ break
fi
done
fi