(dropped libnice list since it's rejecting posts)
On Sat, 2011-08-13 at 11:53 +0100, David Woodhouse wrote:
... or maybe just run the libnice-symbols list through
's/\(.*\)/void \1(void);/', compile it, and run 'nm' on the output.
diff --git a/nice/Makefile.am b/nice/Makefile.am
index d016b96..e3438f0 100644
--- a/nice/Makefile.am
+++ b/nice/Makefile.am
@@ -37,11 +37,18 @@ AM_CFLAGS = \
test-symbols.sh::
chmod +x $(srcdir)/$@
-libnice.symbols: libnice.sym Makefile
+libnice-symbols-test.c: libnice.sym Makefile
rm -f $@
- while read s; do echo "T $$s"; done < $< > $@
+ while read s; do echo "void $$s(void) { }" ; done < $< > $@
-CLEANFILES += libnice.symbols
+libnice-symbols-test.o: libnice-symbols-test.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+libnice.symbols: libnice-symbols-test.o Makefile
+ rm -f $@
+ $(top_srcdir)/scripts/make-symbol-list.sh $< >$@
+
+CLEANFILES += libnice.symbols libnice-symbols-test.c libnice-symbols-test.o
check_SCRIPTS = test-symbols.sh
check_DATA = libnice.symbols
--
dwmw2