From 6f038c7c403c3a5be3a31702f0552096e4c22d99 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sat, 26 May 2001 10:29:51 +0000 Subject: [PATCH] New target 'libcheck' making sure libraries export only sane_* and sanei_* symbols. --- Makefile.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile.in b/Makefile.in index 90c081fc6..d07c614e2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -66,6 +66,18 @@ sort-cvsignore: $(PERL) -e 'print sort <>;' < $$f > $$f.tmptmp; \ mv $$f.tmptmp $$f; \ done +# +# Check to make sure only sane_ and sanei_ symbols are exported from +# the libraries +# +libcheck: + echo "Libraries exporting 'illegal' symbols:" + @for lib in backend/.libs/*.a; do \ + if nm -g $$lib|grep ' T '|egrep -v ' sane_| sanei_' > /dev/null; \ + then \ + echo " $$lib"; \ + fi \ + done clean: clean-recursive