From 4f08bfe96da1542f336589edf310d06ebce3cf20 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Mon, 19 Feb 2018 15:13:15 +0000 Subject: *-symbol-check: Don't hard-code nm executable Helpful if your nm executable has a prefix based on the architecture, for example. Signed-off-by: Heiko Becker Cc: Timo Gurr [Eric: v2: rebase and add Meson support] Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt Reviewed-by: Emil Velikov --- radeon/meson.build | 1 + radeon/radeon-symbol-check | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'radeon') diff --git a/radeon/meson.build b/radeon/meson.build index b02166fe..a4171b41 100644 --- a/radeon/meson.build +++ b/radeon/meson.build @@ -59,5 +59,6 @@ pkg.generate( test( 'radeon-symbol-check', prog_bash, + env : env_test, args : [files('radeon-symbol-check'), libdrm_radeon] ) diff --git a/radeon/radeon-symbol-check b/radeon/radeon-symbol-check index 0bf2ffcb..7d79d901 100755 --- a/radeon/radeon-symbol-check +++ b/radeon/radeon-symbol-check @@ -3,7 +3,7 @@ # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.sources/LIBDRM_RADEON_H_FILES -FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk '{print $3}'| while read func; do ( grep -q "^$func$" || echo $func ) <