diff options
author | Heiko Becker <heirecka@exherbo.org> | 2018-02-19 15:13:15 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@imgtec.com> | 2018-02-23 17:53:08 +0000 |
commit | 4f08bfe96da1542f336589edf310d06ebce3cf20 (patch) | |
tree | 189d03ab810f7fba8993fcbab638cddae5f2bf3b /omap | |
parent | 009634e493097afae95d190fc26cb04a1664648a (diff) | |
download | libdrm-4f08bfe96da1542f336589edf310d06ebce3cf20.tar.gz libdrm-4f08bfe96da1542f336589edf310d06ebce3cf20.tar.bz2 libdrm-4f08bfe96da1542f336589edf310d06ebce3cf20.zip |
*-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 <heirecka@exherbo.org>
Cc: Timo Gurr <timo.gurr@gmail.com>
[Eric: v2: rebase and add Meson support]
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'omap')
-rw-r--r-- | omap/meson.build | 1 | ||||
-rwxr-xr-x | omap/omap-symbol-check | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/omap/meson.build b/omap/meson.build index 1881087f..8adb2213 100644 --- a/omap/meson.build +++ b/omap/meson.build @@ -49,5 +49,6 @@ pkg.generate( test( 'omap-symbol-check', prog_bash, + env : env_test, args : [files('omap-symbol-check'), libdrm_omap] ) diff --git a/omap/omap-symbol-check b/omap/omap-symbol-check index 759c84bd..0fb4a0f2 100755 --- a/omap/omap-symbol-check +++ b/omap/omap-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.am/libdrm_omap*HEADERS -FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk '{print $3}'| while read func; do ( grep -q "^$func$" || echo $func ) <<EOF __bss_start _edata |