DLL dependency listing utility for MinGW applications
Revision | 2b4c7d12c59253dd11d293cc70861c7c27483e38 (tree) |
---|---|
Time | 2020-09-10 04:37:28 |
Author | ![]() |
Commiter | Keith Marshall |
Avoid the use of GNU-specific awk extensions.
* mingw32-ldd.sh (list_depends): Do not depend on the effect of...
(IGNORECASE): ...this awk variable; it is a GNU extension; prefer...
[tolower($0) ~ /pattern/]: ...this POSIX.1 standard construct.
@@ -85,7 +85,7 @@ | ||
85 | 85 | # Helper function, called by depends(), to perform dependency list |
86 | 86 | # extraction from the file explicitly named by EXENAME or DLLNAME. |
87 | 87 | # |
88 | - $objdump -x "$1" | awk 'BEGIN{IGNORECASE=1}/dll name/{print $NF}' | |
88 | + $objdump -x "$1" | awk 'tolower($0) ~ /dll name/ {print $NF}' | |
89 | 89 | } |
90 | 90 | # |
91 | 91 | plot_depends() { |