# HG changeset patch # User "Yann E. MORIN" # Date 1290544510 -3600 # Node ID 78d2f99d403f7092203fc7a119ec19f9a2108afa # Parent 46330accf7482045d8ee0e4a845c83d41affad1d 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" diff -r 46330accf748 -r 78d2f99d403f scripts/xldd.in --- a/scripts/xldd.in Tue Nov 23 21:35:01 2010 +0100 +++ b/scripts/xldd.in Tue Nov 23 21:35:10 2010 +0100 @@ -170,12 +170,14 @@ 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