diff options
| author | ruki <[email protected]> | 2025-12-15 06:59:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-15 06:59:18 +0800 |
| commit | 777fdde191dc443aba4b987c07247446e10bb5d9 (patch) | |
| tree | 0a655c0f866b956847c5960dbf9fca1d0663577a /xmake/modules/utils/binary | |
| parent | 85f1ef3e70620b3919f4e980eb442025f74d1bdd (diff) | |
| parent | 722a8f23bf29d07b5db27eeeb30e2afe8d8defc5 (diff) | |
Merge pull request #7127 from xmake-io/deplibs
Add deplibs in binutils
Diffstat (limited to 'xmake/modules/utils/binary')
| -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) |
