Skip to content

Commit c6b03bc

Browse files
committed
check-for-missing-dlls.sh: optionally parse ldd output
This patch is the result of a (failed) experiment: in the 32-bit SDK, it seems that `objdump -p` isn't able to parse the `.exe` files that were processed by `cv2pdb` (the symptom is "file format not recognized") so the next logical step was to try with `ldd` instead (which unfortunately failed because e.g. `ldd usr/lib/perl5/core_perl/auto/Cwd/Cwd.dll` hangs while waiting for `ldh.exe` to do something or other). Let's keep the code, though, it might come in handy at some stage. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent dbdea78 commit c6b03bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

check-for-missing-dlls.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ do
5151
do
5252
case "$a,$b" in
5353
*.exe:,*|*.dll:,*) current="${a%:}";;
54-
dll,name:)
54+
*.dll,"=>") # `ldd` output
55+
case "$dlls" in
56+
*"/$a$LF"*) ;; # okay, it's included
57+
*) echo "$current is missing $a" >&2;;
58+
esac
59+
;;
60+
dll,name:) # `objdump -p` output
5561
case "$dlls" in
5662
*"/$c$LF"*) ;; # okay, it's included
5763
*) echo "$current is missing $c" >&2;;

0 commit comments

Comments
 (0)