• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

DLL dependency listing utility for MinGW applications


Commit MetaInfo

Revision66b6966606e648b7ad3637d993a172290f061250 (tree)
Time2020-09-08 19:08:30
AuthorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Support a configurable command name host prefix.

* mingw32-ldd.sh (rcinit): Add fall-back initialization for...
(mingw32): ...this new script variable; derive its default value from
the effective basename of this mingw32-ldd command, omitting "-ldd".
(objdump): Use it as a possible cross-tool host prefix.

Change Summary

Incremental Difference

--- a/mingw32-ldd.sh
+++ b/mingw32-ldd.sh
@@ -40,8 +40,9 @@
4040 # predefined in the user's $HOME/.mingw32rc
4141 #
4242 rcinit() { test -r "$1" && . "$1"
43- SYSTEM_DLLPATH=${SYSTEM_DLLPATH-"$SYSTEM_DRIVE/windows/system32"}
4443 PROGRAM_FILES=${PROGRAM_FILES-"$SYSTEM_DRIVE/program files"}
44+ SYSTEM_DLLPATH=${SYSTEM_DLLPATH-"$SYSTEM_DRIVE/windows/system32"}
45+ mingw32=${mingw32-"${CMD%-ldd}"}
4546 }
4647 rcinit "${HOME-`cd;pwd`}/.mingw32rc"
4748 EXEPATH=`dirname "$1"` STATUS=0
@@ -73,10 +74,10 @@
7374 }
7475 #
7576 # The list_depends() function uses the objdump command to identify the
76-# DLL references, but for cross-hosted use, prefer the mingw32-objdump
77+# DLL references, but for cross-hosted use, prefer the $mingw32-objdump
7778 # variant, if it is present in $PATH.
7879 #
79- objdump=`type -p mingw32-objdump || type -p objdump || echo objdump`
80+ objdump=`type -p $mingw32-objdump || type -p objdump || echo objdump`
8081 #
8182 list_depends() {
8283 # Usage: list_depends { EXENAME | DLLNAME }