summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gbm/gbm-symbols.txt (renamed from src/gbm/gbm-symbols-check)19
-rw-r--r--src/gbm/meson.build9
2 files changed, 6 insertions, 22 deletions
diff --git a/src/gbm/gbm-symbols-check b/src/gbm/gbm-symbols.txt
index e28c52d44c8..84ab1886253 100755
--- a/src/gbm/gbm-symbols-check
+++ b/src/gbm/gbm-symbols.txt
@@ -1,15 +1,3 @@
-#!/bin/sh
-set -eu
-
-LIB=${1-.libs/libgbm.so}
-
-if ! [ -f "$LIB" ]
-then
- exit 1
-fi
-
-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
gbm_device_is_format_supported
@@ -45,10 +33,3 @@ gbm_surface_lock_front_buffer
gbm_surface_release_buffer
gbm_surface_has_free_buffers
gbm_surface_destroy
-_fini
-_init
-EOF
-done)
-
-test ! -n "$FUNCS" || echo $FUNCS
-test ! -n "$FUNCS"
diff --git a/src/gbm/meson.build b/src/gbm/meson.build
index b7262c59802..39fa0386a65 100644
--- a/src/gbm/meson.build
+++ b/src/gbm/meson.build
@@ -69,9 +69,12 @@ pkg.generate(
if with_tests and prog_nm.found()
test(
'gbm-symbols-check',
- find_program('gbm-symbols-check'),
- env : env_test,
- args : libgbm,
+ symbols_check,
+ args : [
+ '--lib', libgbm,
+ '--symbols-file', files('gbm-symbols.txt'),
+ '--nm', prog_nm.path(),
+ ],
suite : ['gbm'],
)
endif