diff options
| author | ruki <[email protected]> | 2023-07-26 22:39:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-26 22:39:16 +0800 |
| commit | db47073a5ec27a85073d67c03e38c7bd55598598 (patch) | |
| tree | bae539942c1b834017efc8e3d2dbf23af5409fa4 /xmake/modules | |
| parent | f831a9c4a7fd0a9f07d00fb2feab6a674fb77635 (diff) | |
improve package for soname
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/target/action/install/unix.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/target/action/install/unix.lua b/xmake/modules/target/action/install/unix.lua index fa4834df2..04dd60a01 100644 --- a/xmake/modules/target/action/install/unix.lua +++ b/xmake/modules/target/action/install/unix.lua @@ -54,7 +54,7 @@ function _install_shared_for_package(target, pkg, outputdir) end -- we need to reserve symlink -- @see https://github.com/xmake-io/xmake/issues/1582 - os.vcp(sopath, outputdir, {symlink = true}) + os.vcp(sopath, outputdir, {symlink = true, force = true}) _g.installed_libfiles[sopath] = true end end @@ -123,10 +123,10 @@ function install_shared(target, opt) if not path.is_absolute(targetfile_with_version) then targetfile_with_version = path.join(target:targetdir(), targetfile_with_version) end - os.vcp(targetfile_with_version, librarydir, {symlink = true}) + os.vcp(targetfile_with_version, librarydir, {symlink = true, force = true}) end - os.vcp(targetfile_with_soname, librarydir, {symlink = true}) - os.vcp(targetfile, librarydir, {symlink = true}) + os.vcp(targetfile_with_soname, librarydir, {symlink = true, force = true}) + os.vcp(targetfile, librarydir, {symlink = true, force = true}) else os.vcp(targetfile, librarydir) end |
