Adjust find_status for newer Linux 'nm' output format.
authorBruce Momjian <bruce@momjian.us>
Wed, 14 Nov 2012 02:08:07 +0000 (21:08 -0500)
committerBruce Momjian <bruce@momjian.us>
Wed, 14 Nov 2012 02:08:07 +0000 (21:08 -0500)
src/tools/find_static

index c7014e6014b8d917db3627bdbb43c6d04aa46efb..0643021879f6e3d9c3f2e5603ad24b33826f7d3b 100755 (executable)
@@ -16,8 +16,7 @@ trap "rm -f /tmp/$$" 0 1 2 3 15
 # symbol, then the function name.
 
 find . -name '[a-z]*.o' -type f -print | while read FILE
-do
-       nm $FILE | cut -c10-100 |awk '{printf "%s\t%s\t%s\n", "'"$FILE"'",$1,$2}'
+do     nm $FILE | cut -c17-100 |awk '{printf "%s\t%s\t%s\n", "'"$FILE"'",$1,$2}'
 done >/tmp/$$
 dropdb debug
 createdb debug