mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Add script to search for missing libraries
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
18
tools/find-missing-libs.sh
Normal file
18
tools/find-missing-libs.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# This scripts lists binaries that have missing libraries.
|
||||
# Arguments are paths to search in
|
||||
|
||||
main() {
|
||||
local path
|
||||
for path in $@; do
|
||||
local file
|
||||
for file in $(find "${path}" -type f); do
|
||||
if ldd "${file}" 2>/dev/null | grep -q "not found"; then
|
||||
echo "${file}"
|
||||
ldd "${file}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
main "$@" || exit $?
|
||||
Reference in New Issue
Block a user