summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary/deplibs.lua
diff options
context:
space:
mode:
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())