ignore N symbols too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15092 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -33,9 +33,9 @@ for a in "$@" $esym; do
|
||||
symbols="\$3 !~ /^_?${a}/ ${symbols:+&&} ${symbols}"
|
||||
done
|
||||
|
||||
# F is filename
|
||||
# F is filename, N for debugsymbols
|
||||
|
||||
(nm .libs/lib${lib}.a || nm .libs/lib${lib}.so*) |
|
||||
awk "BEGIN { stat = 0 }
|
||||
NF == 3 && \$2 ~ /[A-EG-Z]/ && $symbols { printf \"%s should not be exported (type %s)\\n\", \$3, \$2; ++stat } END { exit stat }"
|
||||
NF == 3 && \$2 ~ /[A-EG-MO-Z]/ && $symbols { printf \"%s should not be exported (type %s)\\n\", \$3, \$2; ++stat } END { exit stat }"
|
||||
|
||||
|
Reference in New Issue
Block a user