mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 09:13:37 +00:00
Respect setting of NM to allow cross-building.
This commit is contained in:
parent
a243305fbe
commit
81b22b1dfd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95034
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue