ignore weak symbols too

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15204 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-05-22 18:11:30 +00:00
parent 285d9f5407
commit fef228d108

View File

@@ -33,9 +33,9 @@ for a in "$@" $esym; do
symbols="\$3 !~ /^_?${a}/ ${symbols:+&&} ${symbols}"
done
# F is filename, N for debugsymbols
# F is filename, N for debugsymbols, W weak symbols
(nm .libs/lib${lib}.a || nm .libs/lib${lib}.so*) |
awk "BEGIN { stat = 0 }
NF == 3 && \$2 ~ /[A-EG-MO-Z]/ && $symbols { printf \"%s should not be exported (type %s)\\n\", \$3, \$2; ++stat } END { exit stat }"
NF == 3 && \$2 ~ /[A-EG-MO-VX-Z]/ && $symbols { printf \"%s should not be exported (type %s)\\n\", \$3, \$2; ++stat } END { exit stat }"