From 68751ccc25332dff6c35ab5e92243cf8f2bfbc26 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 17 Jul 2024 22:40:28 +0800 Subject: fix replace rpath --- xmake/modules/utils/binary/rpath.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/utils/binary/rpath.lua') 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 -- cgit v1.3.1