summaryrefslogtreecommitdiff
path: root/xmake/modules/utils
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-17 22:40:28 +0800
committerruki <[email protected]>2024-07-17 22:40:28 +0800
commit68751ccc25332dff6c35ab5e92243cf8f2bfbc26 (patch)
tree2e3e1061b10acedf371343b9d92ba1b5c86e066a /xmake/modules/utils
parent168053862fba19e9db24ad9d1efa1091a084a8d8 (diff)
fix replace rpath
Diffstat (limited to 'xmake/modules/utils')
-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