diff --git a/nouveau/meson.build b/nouveau/meson.build index 56e952ca..9bd58fca 100644 --- a/nouveau/meson.build +++ b/nouveau/meson.build @@ -52,8 +52,11 @@ pkg.generate( ) test( - 'nouveau-symbol-check', - find_program('nouveau-symbol-check'), - env : env_test, - args : libdrm_nouveau, + 'nouveau-symbols-check', + symbols_check, + args : [ + '--lib', libdrm_nouveau, + '--symbols-file', files('nouveau-symbols.txt'), + '--nm', prog_nm.path(), + ], ) diff --git a/nouveau/nouveau-symbol-check b/nouveau/nouveau-symbols.txt old mode 100755 new mode 100644 similarity index 65% rename from nouveau/nouveau-symbol-check rename to nouveau/nouveau-symbols.txt index 36703a3e..ef8032f2 --- a/nouveau/nouveau-symbol-check +++ b/nouveau/nouveau-symbols.txt @@ -1,17 +1,3 @@ -#!/bin/sh - -set -u - -# The following symbols (past the first five) are taken from the public headers. -# A list of the latter should be available Makefile.sources/LIBDRM_NOUVEAU_H_FILES - -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk '{print $3}'| while read func; do -( grep -q "^$func$" || echo $func ) <