Respect setting of NM to allow cross-building.

This commit is contained in:
Marcel Moolenaar 2002-04-19 09:04:53 +00:00
parent a243305fbe
commit 81b22b1dfd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95034

View file

@ -2,7 +2,7 @@
# Read global symbols from object file.
BEGIN {
while ("nm -g " ARGV[1] | getline) {
while ("${NM:='nm'} -g " ARGV[1] | getline) {
if (match($0, /^[^[:space:]]+ [^AU] (.*)$/)) {
syms[$3] = $2
}