summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-09-03 14:11:53 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-09-03 14:12:16 +0200
commit751da923262746bf8fd3195e178504fb18c37dc5 (patch)
treefd70d8cdb9b85f798f87f9b062c02bd1deabd211
parent9249ad37b2342eb48009e18f3982362e1018ea5a (diff)
build: scan for unreferenced symbols
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>
-rw-r--r--extensions/GNUmakefile.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 107c9d59..a9edb1e6 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -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}";