summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary/deplibs.lua
diff options
context:
space:
mode:
authorbinLep <[email protected]>2025-04-27 11:29:50 +0800
committerbinLep <[email protected]>2025-04-27 11:29:50 +0800
commita0030c2c4fc23fd344dc5f8d9b2c18bc0d7c6b39 (patch)
treed8c01e66824369d74badd6c2c61bfa4ee33c4ab9 /xmake/modules/utils/binary/deplibs.lua
parent00ff68e7319def8c566443aa513454ad86ccecd7 (diff)
update the search regex for installing packages
Diffstat (limited to 'xmake/modules/utils/binary/deplibs.lua')
-rw-r--r--xmake/modules/utils/binary/deplibs.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua
index cb6b230e0..48002f5d8 100644
--- a/xmake/modules/utils/binary/deplibs.lua
+++ b/xmake/modules/utils/binary/deplibs.lua
@@ -81,7 +81,7 @@ function _get_all_depends_by_objdump(binaryfile, opt)
else
if line:startswith("NEEDED") then
local filename = line:split("%s+")[2]
- if filename and filename:endswith(".so") or filename:find("%.so%.%d+$") then
+ if filename and filename:endswith(".so") or filename:find("%.so[%.%d+]+$") then
depends = depends or {}
table.insert(depends, filename)
end
@@ -122,7 +122,7 @@ function _get_all_depends_by_ldd(binaryfile, opt)
line = splitinfo[1]
end
line = line:gsub("%(.+%)", ""):trim()
- local filename = line:match(".-%.so$") or line:match(".-%.so%.%d+")
+ local filename = line:match(".-%.so$") or line:match(".-%.so[%.%d+]+$")
if filename then
depends = depends or {}
table.insert(depends, filename:trim())