summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-04-04 22:36:02 +0200
committerMichael Biebl <biebl@debian.org>2011-04-04 22:36:02 +0200
commitc980bdf58dc973dd5617aaa6f9466f9e44fcbf58 (patch)
treed92f417ab2d0b49d6a006fbd48602744fe245380 /tools
parente22c6e05e9ebc6cce941762020c5710b8014677b (diff)
Imported Upstream version 0.8.3.999upstream/0.8.3.999
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am2
-rw-r--r--tools/Makefile.in4
-rwxr-xr-xtools/check-exports.sh25
3 files changed, 28 insertions, 3 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 17dc61466..09a3f0edd 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1 +1 @@
-EXTRA_DIST = doc-generator.xsl
+EXTRA_DIST = doc-generator.xsl check-exports.sh
diff --git a/tools/Makefile.in b/tools/Makefile.in
index f51c74221..489fc662f 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -41,7 +41,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/compiler_warnings.m4 \
$(top_srcdir)/m4/libnl-check.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/configure.ac
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
@@ -243,7 +243,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-EXTRA_DIST = doc-generator.xsl
+EXTRA_DIST = doc-generator.xsl check-exports.sh
all: all-am
.SUFFIXES:
diff --git a/tools/check-exports.sh b/tools/check-exports.sh
new file mode 100755
index 000000000..1415e1448
--- /dev/null
+++ b/tools/check-exports.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+stat=0
+so=$1
+def=$2
+
+# Have to prefix with a tab and suffix with a ';' to match .ver file format
+get_syms='( objdump -t "$so" | grep "^[^ ]* [^l.*]*[.]"; objdump -t "$so" | grep "[.]hidden.*"; ) | sed "s/.* //" | sed "s/^/\t/" | sed "s/$/;/"'
+
+echo $so: checking exported symbols against $def
+
+{
+ echo "{"
+ echo "global:"
+ eval $get_syms | sort -u
+ echo "local:"
+ echo " *;"
+ echo "};"
+} | diff -u "$def" - >&2 || stat=1
+
+exit $stat
+