Skip to content

Commit

Permalink
test: Prefer the nm-executable specified in the environment.
Browse files Browse the repository at this point in the history
This is needed to use a toolchain specific version of nm,
e.g. when compiling with link-time optimization.
  • Loading branch information
besser82 committed Aug 13, 2020
1 parent e9a6b2d commit 2c44032
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/symbols-compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ LC_ALL=C; export LC_ALL

get_symbols_with_versions ()
{
nm --dynamic --extern-only --defined-only --with-symbol-versions "$1" |
${NM-nm} --dynamic --extern-only --defined-only --with-symbol-versions "$1" |
${AWK-awk} -v symbol_prefix="$symbol_prefix" '
NF == 0 { next }
{
Expand Down
2 changes: 1 addition & 1 deletion test/symbols-renames.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ LC_ALL=C; export LC_ALL
list_library_internals ()
{
eval $(grep old_library= "$1")
nm -o --extern-only --defined-only "${1%/*}/.libs/${old_library}" |
${NM-nm} -o --extern-only --defined-only "${1%/*}/.libs/${old_library}" |
${AWK-awk} -v symbol_prefix="$symbol_prefix" '
NF == 0 { next }
{
Expand Down
2 changes: 1 addition & 1 deletion test/symbols-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ LC_ALL=C; export LC_ALL
list_library_globals ()
{
eval $(grep old_library= "$1")
nm -o --extern-only --defined-only "${1%/*}/.libs/${old_library}" |
${NM-nm} -o --extern-only --defined-only "${1%/*}/.libs/${old_library}" |
${AWK-awk} -v symbol_prefix="$symbol_prefix" '
NF == 0 { next }
{
Expand Down

0 comments on commit 2c44032

Please sign in to comment.