summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/fpc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-02 23:38:26 +0800
committerruki <[email protected]>2021-09-02 23:38:26 +0800
commit684ba799f95d3f8832a9e220ce2743aa2ecb505f (patch)
tree6593726481bbd4f4292e6858858f26979ca2995d /xmake/modules/core/tools/fpc.lua
parent1306c34442e6089f05ef54b0772d4fb629c25117 (diff)
improve fpc link
Diffstat (limited to 'xmake/modules/core/tools/fpc.lua')
-rw-r--r--xmake/modules/core/tools/fpc.lua12
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