build: allow configuring path to binutils's nm tool during build

`nm` is used by "tools/create-exports-NetworkManager.sh" script.
Alloc configuring an explicit path during configure.

  BINUTILS_NM=/usr/bin/nm ./configure
This commit is contained in:
Thomas Haller
2017-02-08 16:18:11 +01:00
parent a347962831
commit 8bc88bcc7c
3 changed files with 4 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ _sort() {
}
call_nm() {
nm "$1" |
"${BINUTILS_NM:-${NM:-nm}}" "$1" |
sed -n 's/.* \([^ ]\) \([^ ]*\)$/\1 \2/p'
}