diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-09-03 14:11:53 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-09-03 14:12:16 +0200 |
commit | 751da923262746bf8fd3195e178504fb18c37dc5 (patch) | |
tree | fd70d8cdb9b85f798f87f9b062c02bd1deabd211 /extensions | |
parent | 9249ad37b2342eb48009e18f3982362e1018ea5a (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>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/GNUmakefile.in | 11 |
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}"; |