diff options
author | Eric Engestrom <[email protected]> | 2018-02-23 17:02:08 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-02-26 13:50:59 +0000 |
commit | 11d45304fd20bbdf07222830e76d3f9977e803b4 (patch) | |
tree | 8e5e9b3f516c5bcdd222677f1b8ccdd6b8b61052 /src/gbm | |
parent | ef308d40070014b92aaf07a228edc73bd2e85570 (diff) |
*-symbol-check: use correct `nm` path when cross-compiling
Inspired-by: a similar patch for libdrm by Heiko Becker
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gbm')
-rwxr-xr-x | src/gbm/gbm-symbols-check | 3 | ||||
-rw-r--r-- | src/gbm/meson.build | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gbm/gbm-symbols-check b/src/gbm/gbm-symbols-check index cf57a08d572..5adeadaed07 100755 --- a/src/gbm/gbm-symbols-check +++ b/src/gbm/gbm-symbols-check @@ -8,8 +8,7 @@ then exit 1 fi - -FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do +FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF gbm_device_get_fd gbm_device_get_backend_name diff --git a/src/gbm/meson.build b/src/gbm/meson.build index 2f5d1c6ddd7..13fa3a1f84c 100644 --- a/src/gbm/meson.build +++ b/src/gbm/meson.build @@ -74,6 +74,7 @@ if with_tests test( 'gbm-symbols-check', find_program('gbm-symbols-check'), + env : env_test, args : libgbm ) endif |