summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-02 23:47:31 +0800
committerruki <[email protected]>2021-09-02 23:47:31 +0800
commitef248c45a806beb1347f3080cb521c4141da4682 (patch)
treeed80c83b0b5864f2f69a5c4ffc2c7a846270b0bf /xmake/modules/core/tools
parent13acaccc305ef18631601d1d23bfae1c9faef490 (diff)
improve rpath for fpc
Diffstat (limited to 'xmake/modules/core/tools')
-rw-r--r--xmake/modules/core/tools/fpc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua
index 0f2d3025f..de5b349c6 100644
--- a/xmake/modules/core/tools/fpc.lua
+++ b/xmake/modules/core/tools/fpc.lua
@@ -76,8 +76,8 @@ end
-- make the rpathdir flag
function nf_rpathdir(self, dir)
dir = path.translate(dir)
- if self:has_flags("-k,-rpath=" .. dir, "ldflags") then
- return {"-k,-rpath=" .. (dir:gsub("@[%w_]+", function (name)
+ if self:has_flags("-k-rpath=" .. dir, "ldflags") then
+ return {"-k-rpath=" .. (dir:gsub("@[%w_]+", function (name)
local maps = {["@loader_path"] = "$ORIGIN", ["@executable_path"] = "$ORIGIN"}
return maps[name]
end))}