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 | |
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')
-rwxr-xr-x | src/egl/egl-symbols-check | 2 | ||||
-rw-r--r-- | src/egl/meson.build | 1 | ||||
-rw-r--r-- | src/egl/wayland/wayland-egl/meson.build | 1 | ||||
-rwxr-xr-x | src/egl/wayland/wayland-egl/wayland-egl-symbols-check | 2 | ||||
-rwxr-xr-x | src/gbm/gbm-symbols-check | 3 | ||||
-rw-r--r-- | src/gbm/meson.build | 1 | ||||
-rwxr-xr-x | src/mapi/es1api/ABI-check | 2 | ||||
-rw-r--r-- | src/mapi/es1api/meson.build | 1 | ||||
-rwxr-xr-x | src/mapi/es2api/ABI-check | 2 | ||||
-rw-r--r-- | src/mapi/es2api/meson.build | 1 |
10 files changed, 10 insertions, 6 deletions
diff --git a/src/egl/egl-symbols-check b/src/egl/egl-symbols-check index ae867d04bca..460e61a357c 100755 --- a/src/egl/egl-symbols-check +++ b/src/egl/egl-symbols-check @@ -8,7 +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 eglBindAPI eglBindTexImage diff --git a/src/egl/meson.build b/src/egl/meson.build index abf60855737..36cd33ac08b 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -204,6 +204,7 @@ if with_tests else test('egl-symbols-check', find_program('egl-symbols-check'), + env : env_test, args : libegl ) endif diff --git a/src/egl/wayland/wayland-egl/meson.build b/src/egl/wayland/wayland-egl/meson.build index c95d4c1d1f4..d0a7521da91 100644 --- a/src/egl/wayland/wayland-egl/meson.build +++ b/src/egl/wayland/wayland-egl/meson.build @@ -40,6 +40,7 @@ pkg.generate( if with_tests test('wayland-egl-symbols-check', find_program('wayland-egl-symbols-check'), + env : env_test, args : libwayland_egl ) test( diff --git a/src/egl/wayland/wayland-egl/wayland-egl-symbols-check b/src/egl/wayland/wayland-egl/wayland-egl-symbols-check index 04b2dbf1d37..a5fab775824 100755 --- a/src/egl/wayland/wayland-egl/wayland-egl-symbols-check +++ b/src/egl/wayland/wayland-egl/wayland-egl-symbols-check @@ -8,7 +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 wl_egl_window_resize wl_egl_window_create 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 diff --git a/src/mapi/es1api/ABI-check b/src/mapi/es1api/ABI-check index b9ae5efafd8..11b4923dea2 100755 --- a/src/mapi/es1api/ABI-check +++ b/src/mapi/es1api/ABI-check @@ -26,7 +26,7 @@ then exit 1 fi -FUNCS=$(nm -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do +FUNCS=$($NM -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF glActiveTexture glAlphaFunc diff --git a/src/mapi/es1api/meson.build b/src/mapi/es1api/meson.build index 38a5747e9a0..657dc2d9eff 100644 --- a/src/mapi/es1api/meson.build +++ b/src/mapi/es1api/meson.build @@ -55,6 +55,7 @@ if with_tests test( 'es1-ABI-check', find_program('ABI-check'), + env : env_test, args : libglesv1_cm ) endif diff --git a/src/mapi/es2api/ABI-check b/src/mapi/es2api/ABI-check index 7bc78480f76..a04b03d7d60 100755 --- a/src/mapi/es2api/ABI-check +++ b/src/mapi/es2api/ABI-check @@ -23,7 +23,7 @@ then exit 1 fi -FUNCS=$(nm -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do +FUNCS=$($NM -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF glActiveShaderProgram glActiveTexture diff --git a/src/mapi/es2api/meson.build b/src/mapi/es2api/meson.build index 9f4770a7386..da5198ed6e8 100644 --- a/src/mapi/es2api/meson.build +++ b/src/mapi/es2api/meson.build @@ -55,6 +55,7 @@ if with_tests test( 'es2-ABI-check', find_program('ABI-check'), + env : env_test, args : libgles2 ) endif |