From df131f5ad79bc1e1da43ef796ce5e398c101059f Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 17 Jul 2024 21:01:24 +0800 Subject: enable soname --- xmake/plugins/pack/batchcmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/plugins/pack/batchcmds.lua') diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua index 6245a345c..767f86d75 100644 --- a/xmake/plugins/pack/batchcmds.lua +++ b/xmake/plugins/pack/batchcmds.lua @@ -109,8 +109,8 @@ function _update_target_install_rpath(target, batchcmds_, opt) local package = opt.package local bindir = _get_target_bindir(package, target) local targetfile = path.join(bindir, target:filename()) - batchcmds_:clean_rpath(targetfile, {plat = target:plat(), arch = target:arch()}) if target:policy("install.rpath") then + batchcmds_:clean_rpath(targetfile, {plat = target:plat(), arch = target:arch()}) local result, sources = target:get_from("rpathdirs", "*") if result and sources then for idx, rpathdirs in ipairs(result) do -- cgit v1.3.1