diff options
| author | ruki <[email protected]> | 2024-07-11 22:58:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-11 22:58:21 +0800 |
| commit | 0caf8853dfb45801c1fe71bab742c9a8379e4ff5 (patch) | |
| tree | 8abc90dfffbc70a284b0eb241db6ef29bf8d17b6 | |
| parent | 50045e2822068e7904a73884fe92486f2bed651f (diff) | |
enable ldd for bsd
| -rw-r--r-- | xmake/modules/utils/symbols/depend.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/utils/symbols/depend.lua b/xmake/modules/utils/symbols/depend.lua index 3072e4964..3a5985859 100644 --- a/xmake/modules/utils/symbols/depend.lua +++ b/xmake/modules/utils/symbols/depend.lua @@ -142,7 +142,7 @@ end function _get_all_depends_by_ldd(binaryfile, opt) local plat = opt.plat or os.host() local arch = opt.arch or os.arch() - if plat ~= "linux" then + if plat ~= "linux" and plat ~= "bsd" then return end local depends @@ -229,7 +229,7 @@ function main(binaryfile, opt) } if is_host("windows") then table.insert(dumpers, _get_all_depends_by_dumpbin) - elseif is_host("linux") then + elseif is_host("linux", "bsd") then table.insert(dumpers, _get_all_depends_by_ldd) elseif is_host("macosx") then table.insert(dumpers, _get_all_depends_by_otool) |
