diff options
| author | ruki <[email protected]> | 2021-09-02 23:38:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-02 23:38:26 +0800 |
| commit | 684ba799f95d3f8832a9e220ce2743aa2ecb505f (patch) | |
| tree | 6593726481bbd4f4292e6858858f26979ca2995d /xmake/modules/core/tools/fpc.lua | |
| parent | 1306c34442e6089f05ef54b0772d4fb629c25117 (diff) | |
improve fpc link
Diffstat (limited to 'xmake/modules/core/tools/fpc.lua')
| -rw-r--r-- | xmake/modules/core/tools/fpc.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua index 65662de4c..7062228cc 100644 --- a/xmake/modules/core/tools/fpc.lua +++ b/xmake/modules/core/tools/fpc.lua @@ -35,9 +35,19 @@ end function nf_symbol(self, level) end +-- make the link flag +function nf_link(self, lib) + return "-k-l" .. lib +end + +-- make the syslink flag +function nf_syslink(self, lib) + return nf_link(self, lib) +end + -- make the linkdir flag function nf_linkdir(self, dir) - return {"-L" .. dir} + return {"-k-L" .. dir} end -- make the build arguments list |
