diff options
| author | ruki <[email protected]> | 2024-02-07 00:46:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-07 00:46:51 +0800 |
| commit | b68a8beb9baba778d2d467863fd41120dfa31bb2 (patch) | |
| tree | c3a68eb38cc43297f298ea4169c32a8886895425 | |
| parent | 6d635f24fda7ce5e31c5350cf67415e26ff1452f (diff) | |
fix soname link
| -rw-r--r-- | xmake/rules/linker/soname/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/linker/soname/xmake.lua b/xmake/rules/linker/soname/xmake.lua index 34179f858..2af8d7489 100644 --- a/xmake/rules/linker/soname/xmake.lua +++ b/xmake/rules/linker/soname/xmake.lua @@ -45,7 +45,7 @@ rule("linker.soname") end local targetfile_with_soname = path.join(target:targetdir(), soname) local targetfile = target:targetfile() - if soname ~= filename and soname ~= path.filename(targetfile_with_version) then + if soname ~= filename and soname ~= path.filename(targetfile_with_version) and not os.islink(target:targetfile()) then os.cp(target:targetfile(), targetfile_with_version) os.rm(target:targetfile()) local oldir = os.cd(target:targetdir()) |
