diff options
| author | ruki <[email protected]> | 2025-12-12 23:12:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-12 23:12:57 +0800 |
| commit | 97c17dc338a66bbbae36eef59c4d4ca537bff8ec (patch) | |
| tree | 3cb7a0c517871c44265d709bb91102cac520b73c /xmake/modules/utils/binary/deplibs.lua | |
| parent | b7e9857eff9a4425237e8eeb5c666fb4570eec76 (diff) | |
add deplibs in binutils
Diffstat (limited to 'xmake/modules/utils/binary/deplibs.lua')
| -rw-r--r-- | xmake/modules/utils/binary/deplibs.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua index 30c1e6b4f..1de8056fd 100644 --- a/xmake/modules/utils/binary/deplibs.lua +++ b/xmake/modules/utils/binary/deplibs.lua @@ -25,6 +25,11 @@ import("core.base.hashset") import("core.tool.toolchain") import("lib.detect.find_tool") import("utils.binary.rpath", {alias = "rpath_utils"}) +import("core.base.binutils") + +function _get_depends_by_binutils(binaryfile, opt) + return binutils.deplibs(binaryfile) +end function _get_depends_by_dumpbin(binaryfile, opt) local depends @@ -215,7 +220,8 @@ function _get_depends(binaryfile, opt) opt = opt or {} local ops = { _get_depends_by_objdump, - _get_depends_by_readelf + _get_depends_by_readelf, + _get_depends_by_binutils } if is_host("windows") then table.insert(ops, 1, _get_depends_by_dumpbin) |
