summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary/rpath.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/utils/binary/rpath.lua')
-rw-r--r--xmake/modules/utils/binary/rpath.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/binary/rpath.lua b/xmake/modules/utils/binary/rpath.lua
index 016ff5133..cdf87d580 100644
--- a/xmake/modules/utils/binary/rpath.lua
+++ b/xmake/modules/utils/binary/rpath.lua
@@ -29,7 +29,7 @@ function _replace_rpath_vars(rpath, opt)
rpath = rpath:gsub("@loader_path", "$ORIGIN")
rpath = rpath:gsub("@executable_path", "$ORIGIN")
else
- rpath = rpath:gsub("%$ORIGIN", "%loader_path")
+ rpath = rpath:gsub("%$ORIGIN", "@loader_path")
end
return rpath
end