]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: scan for unreferenced symbols
authorJan Engelhardt <jengelh@medozas.de>
Sat, 3 Sep 2011 12:11:53 +0000 (14:11 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 3 Sep 2011 12:12:16 +0000 (14:12 +0200)
To be notified of occurrences where we are missing any libraries, run
some ldd checks post building.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/GNUmakefile.in

index 107c9d59d8bc7eb32ea8c938974b6d5ca4bf571a..a9edb1e6631313ee51158d9f7939bde60ccd27d4 100644 (file)
@@ -68,7 +68,16 @@ targets_install :=
 
 .PHONY: all install clean distclean FORCE
 
-all: ${targets}
+all: ${targets} check
+
+check: ${targets}
+       @echo "  CHECK    unknown symbols in .so files"; \
+       . ../iptables/libxtables.la; \
+       for i in "" lib*.so; do \
+               [ -z "$$i" ] && continue; \
+               LD_PRELOAD="$$dlname" LD_LIBRARY_PATH=../iptables/.libs \
+                       ldd -r $$i 2>&1 >/dev/null; \
+       done;
 
 install: ${targets_install}
        @mkdir -p "${DESTDIR}${xtlibdir}";