From d5ef6455a7ae27dcbea4cc3b977f45b48f7e563e Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Aug 2021 15:49:46 +0800 Subject: Update unix.lua --- xmake/modules/target/action/install/unix.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/target/action/install/unix.lua b/xmake/modules/target/action/install/unix.lua index af3f710a1..bd2a1cdb1 100644 --- a/xmake/modules/target/action/install/unix.lua +++ b/xmake/modules/target/action/install/unix.lua @@ -39,7 +39,7 @@ end function _install_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 - local soname = path.filename(dllpath) + local soname = path.filename(sopath) if os.isfile(path.join(outputdir, soname)) then wprint("'%s' already exists in install dir, overwriting it from package(%s).", soname, pkg:name()) end -- cgit v1.3.1