summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-10 17:42:50 +0800
committerruki <[email protected]>2017-02-10 17:42:50 +0800
commit8caa6f045d2104b92fb376827e20bf1d7a0d41b1 (patch)
tree5286c01eb54fa961b0c1cac2f1f9853c7ef0d45b
parent66fd8c8254be4d54527dd23ada01f9a314387c8a (diff)
fix mingw link issue for *.lib
-rw-r--r--xmake/platforms/mingw/load.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/platforms/mingw/load.lua b/xmake/platforms/mingw/load.lua
index bdf1eeb0a..d455fc564 100644
--- a/xmake/platforms/mingw/load.lua
+++ b/xmake/platforms/mingw/load.lua
@@ -30,11 +30,11 @@ function main()
-- init the file formats
_g.formats = {}
- _g.formats.static = {"", ".lib"}
- _g.formats.object = {"", ".obj"}
- _g.formats.shared = {"", ".dll"}
- _g.formats.binary = {"", ".exe"}
- _g.formats.symbol = {"", ".pdb"}
+ _g.formats.static = {"lib", ".a"}
+ _g.formats.object = {"", ".o"}
+ _g.formats.shared = {"lib", ".so"}
+ _g.formats.binary = {"", ".exe"}
+ _g.formats.symbol = {"", ".pdb"}
-- init flags for architecture
local archflags = nil