mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
scripts/xldd: stop at first match
Break the library search loop as soon as a match is found. Previously, if a library was present in different places, then the last occurence would be returned, when the first one would have been used at runtime. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
dc4498ca35
commit
b98f8fe48f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user