diff options
| author | ruki <[email protected]> | 2022-09-02 23:14:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-02 23:14:57 +0800 |
| commit | 21dbc6f8c67d51815e4c0cd661b24d964b430b2a (patch) | |
| tree | 377d22b2974b6cfd236e9a1932f59d19b9351447 | |
| parent | dea67e8f08265301565cf487c842bc7f3642e3b7 (diff) | |
improve uninstall
| -rw-r--r-- | xmake/modules/target/action/uninstall/unix.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/target/action/uninstall/unix.lua b/xmake/modules/target/action/uninstall/unix.lua index 904a28a77..7deeb53ef 100644 --- a/xmake/modules/target/action/uninstall/unix.lua +++ b/xmake/modules/target/action/uninstall/unix.lua @@ -30,7 +30,7 @@ end -- uninstall shared libraries for package function _uninstall_shared_for_package(target, pkg, outputdir) for _, sopath in ipairs(table.wrap(pkg:get("libfiles"))) do - if sopath:endswith(".so") or sopath:endswith(".dylib") then + if sopath:endswith(".so") or sopath:match(".+%.so%..+$") or sopath:endswith(".dylib") then local soname = path.filename(sopath) local filepath = path.join(outputdir, soname) -- https://github.com/xmake-io/xmake/issues/2665#issuecomment-1209619081 |
