summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 7d02930f0..1a4450a4c 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -159,8 +159,8 @@ function builder:_inherit_from_targetdeps(results, target, flagname)
elseif flagname == "rpathdirs" and targetkind == "binary" then
- -- add dependent rpathdirs (need absolute path)
- table.insert(results, path.directory(path.absolute(dep:targetfile(), os.projectdir())))
+ -- add dependent rpathdirs
+ table.insert(results, "@loader_path")
elseif flagname == "includedirs" then