diff --git a/exynos/Makefile.am b/exynos/Makefile.am index a9da0ff5..0136a619 100644 --- a/exynos/Makefile.am +++ b/exynos/Makefile.am @@ -23,3 +23,6 @@ libdrm_exynosinclude_HEADERS = exynos_drmif.h pkgconfigdir = @pkgconfigdir@ pkgconfig_DATA = libdrm_exynos.pc + +TESTS = exynos-symbol-check +EXTRA_DIST = $(TESTS) diff --git a/exynos/exynos-symbol-check b/exynos/exynos-symbol-check new file mode 100755 index 00000000..1a1be89e --- /dev/null +++ b/exynos/exynos-symbol-check @@ -0,0 +1,37 @@ +#!/bin/bash + +# The following symbols (past the first five) are taken from the public headers. +# A list of the latter should be available Makefile.am/libdrm_exynos*_HEADERS + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <