svn commit: r282295 - head/tools/build
Bryan Drewery
bdrewery at FreeBSD.org
Fri May 1 05:01:57 UTC 2015
Author: bdrewery
Date: Fri May 1 05:01:56 2015
New Revision: 282295
URL: https://svnweb.freebsd.org/changeset/base/282295
Log:
Add a -v to tell where each symbol is resolved from.
Sponsored by: EMC / Isilon Storage Division
Modified:
head/tools/build/check-links.sh
Modified: head/tools/build/check-links.sh
==============================================================================
--- head/tools/build/check-links.sh Fri May 1 04:35:42 2015 (r282294)
+++ head/tools/build/check-links.sh Fri May 1 05:01:56 2015 (r282295)
@@ -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
More information about the svn-src-head
mailing list