summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary
diff options
context:
space:
mode:
authorwps <[email protected]>2025-03-27 10:43:25 +0800
committerwps <[email protected]>2025-03-27 10:43:25 +0800
commit86bdb42dcea06a5d787c126a077a6e619c5dfa68 (patch)
treead5ca5ec5730bc9d8796dc8b696c7996a1f3a0b9 /xmake/modules/utils/binary
parent336c0dca475a233b754b713486f44590491a0752 (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 146e79504..52261b386 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") then
+ if filename and filename:endswith(".so") or filename:match(".-%.so%.%d+") then
depends = depends or {}
table.insert(depends, filename)
end