diff options
| author | ruki <[email protected]> | 2021-09-02 23:47:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-02 23:47:31 +0800 |
| commit | ef248c45a806beb1347f3080cb521c4141da4682 (patch) | |
| tree | ed80c83b0b5864f2f69a5c4ffc2c7a846270b0bf /xmake/modules/core/tools | |
| parent | 13acaccc305ef18631601d1d23bfae1c9faef490 (diff) | |
improve rpath for fpc
Diffstat (limited to 'xmake/modules/core/tools')
| -rw-r--r-- | xmake/modules/core/tools/fpc.lua | 4 |
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))} |
