tools/check-exports.sh: use ${NM} when available
This way you can export NM to use a prefixed tool https://bugzilla.gnome.org/show_bug.cgi?id=755540 Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:

committed by
Thomas Haller

parent
1b7196ec51
commit
2a4a222d95
@@ -12,7 +12,7 @@ TMPFILE="$(mktemp .nm-check-exports.XXXXXX)"
|
||||
|
||||
|
||||
get_syms() {
|
||||
nm "$1" |
|
||||
${NM:-nm} "$1" |
|
||||
sed -n 's/^[[:xdigit:]]\+ [DT] //p' |
|
||||
sort
|
||||
}
|
||||
|
Reference in New Issue
Block a user