summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary
diff options
context:
space:
mode:
authorruki <[email protected]>2025-03-27 16:15:37 +0800
committerGitHub <[email protected]>2025-03-27 16:15:37 +0800
commit7c9b18cea01deca88ffd5a0834a65f6dc0cda7fc (patch)
treea13f05e3755d0c1bd0e565d0937639fb38604cd5 /xmake/modules/utils/binary
parent336c0dca475a233b754b713486f44590491a0752 (diff)
parenteeab24c60cc917731bde3182a4e6df4c05e0bd9b (diff)
Merge pull request #6257 from 19317362/dev
[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..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") then
+ if filename and filename:endswith(".so") or filename:find("%.so%.%d+$") then
depends = depends or {}
table.insert(depends, filename)
end