summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-26 13:39:36 +0800
committerruki <[email protected]>2025-01-26 13:39:36 +0800
commitfdd1ea316ae32434c88e55c0244f194b0602500d (patch)
tree284d335943a2ea26cb0e2ef0ea6bf4ac084b2919
parentb9aa5be90928f745f51e69596a9bb4f1cbbac6f4 (diff)
improve ilinkarm
-rw-r--r--xmake/modules/core/tools/iarchive.lua2
-rw-r--r--xmake/modules/core/tools/ilinkarm.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/iarchive.lua b/xmake/modules/core/tools/iarchive.lua
index 42a3009b0..2813650f9 100644
--- a/xmake/modules/core/tools/iarchive.lua
+++ b/xmake/modules/core/tools/iarchive.lua
@@ -21,5 +21,5 @@
inherit("ar")
function init(self)
- self:set("arflags", "-r")
+ self:set("arflags", "--create")
end
diff --git a/xmake/modules/core/tools/ilinkarm.lua b/xmake/modules/core/tools/ilinkarm.lua
index 3c5a4a813..3bf6b012c 100644
--- a/xmake/modules/core/tools/ilinkarm.lua
+++ b/xmake/modules/core/tools/ilinkarm.lua
@@ -49,7 +49,7 @@ end
-- make the linkdir flag
function nf_linkdir(self, dir)
- return {"-i" .. path.translate(dir)}
+ return {"-L" .. path.translate(dir)}
end
-- make the link arguments list