summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary
diff options
context:
space:
mode:
authorwps <[email protected]>2025-03-27 13:47:30 +0800
committerwps <[email protected]>2025-03-27 13:47:30 +0800
commiteeab24c60cc917731bde3182a4e6df4c05e0bd9b (patch)
treea13f05e3755d0c1bd0e565d0937639fb38604cd5 /xmake/modules/utils/binary
parent86bdb42dcea06a5d787c126a077a6e619c5dfa68 (diff)
[fix] xmake install skips SO with version like libfreetype.so.6.20.2
Diffstat (limited to 'xmake/modules/utils/binary')
-rw-r--r--xmake/modules/utils/binary/deplibs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua
index 52261b386..cb6b230e0 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:match(".-%.so%.%d+") then
+ if filename and filename:endswith(".so") or filename:find("%.so%.%d+$") then
depends = depends or {}
table.insert(depends, filename)
end