summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-08-18 22:19:25 +0800
committerruki <[email protected]>2017-08-18 22:19:25 +0800
commitc049bcb7fc2e2e032ebc69897e5170c214bf8df2 (patch)
treeaa45fac7634774f4be0916ea265e51c9cff37708 /xmake/core/tool/builder.lua
parentb068f28c48cb6cd7246dcfeaff648327decb3101 (diff)
improve rpath
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