• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

DLL dependency listing utility for MinGW applications


Commit MetaInfo

修訂4438871e1cde53355d45df7eb771cfc57aa10a35 (tree)
時間2019-10-12 20:36:38
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Use mingw32-specific objdump command, if available.

* mingw32-ldd.sh (objdump): New script variable; define, and...
(list_depends): ...use it.

Change Summary

差異

--- a/mingw32-ldd.sh
+++ b/mingw32-ldd.sh
@@ -8,8 +8,8 @@
88 #
99 # $Id$
1010 #
11-# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
12-# Copyright (C) 2016, 2017, MinGW.org Project
11+# Written by Keith Marshall <keith@users.osdn.me>
12+# Copyright (C) 2016, 2017, 2019, MinGW.org Project
1313 #
1414 #
1515 # Permission is hereby granted, free of charge, to any person obtaining a
@@ -65,13 +65,19 @@
6565 )
6666 }
6767 #
68+# The list_depends() function uses the objdump command to identify the
69+# DLL references, but for cross-hosted use, prefer the mingw32-objdump
70+# variant, if it is present in $PATH.
71+#
72+ objdump=`type -p mingw32-objdump || type -p objdump || echo objdump`
73+#
6874 list_depends(){
6975 # Usage: list_depends {EXENAME | DLLNAME}
7076 #
7177 # Helper function, called by depends(), to perform dependency list
7278 # extraction from the file explicitly named by EXENAME or DLLNAME.
7379 #
74- objdump -x "$1" | awk 'BEGIN{IGNORECASE=1}/dll name/{print $NF}'
80+ $objdump -x "$1" | awk 'BEGIN{IGNORECASE=1}/dll name/{print $NF}'
7581 }
7682 #
7783 plot_depends(){