diff --git a/tools/build/check-links.sh b/tools/build/check-links.sh index ba5d58bbfde..57c9437c025 100755 --- a/tools/build/check-links.sh +++ b/tools/build/check-links.sh @@ -20,9 +20,11 @@ libkey() { ret=0 CHECK_UNRESOLVED=1 -while getopts "U" flag; do +VERBOSE_RESOLVED=0 +while getopts "Uv" flag; do case "${flag}" in U) CHECK_UNRESOLVED=0 ;; + v) VERBOSE_RESOLVED=1 ;; esac done shift $((OPTIND-1)) @@ -91,7 +93,12 @@ if [ ${CHECK_UNRESOLVED} -eq 1 ]; then eval "lib_symbols=\"\${${libkey}}\"" # lib_symbols now contains symbols for the lib. case " ${lib_symbols} " in - *\ ${sym}\ *) found=1 && break ;; + *\ ${sym}\ *) + [ ${VERBOSE_RESOLVED} -eq 1 ] && + echo "Resolved symbol ${sym} from ${lib}" + found=1 + break + ;; esac done if [ $found -eq 0 ]; then