summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-11-07 22:51:03 +0800
committerruki <[email protected]>2016-11-07 22:51:03 +0800
commit7ff0e5bcd9747c121ad7b712a6a3f220c528b474 (patch)
tree692b96db264aeec52c35c302e7731537373e9835
parentd59184e0fdb61ba2ac326da945e2fa41c412384a (diff)
modify links order
-rw-r--r--xmake/core/tool/linker.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index 418a150ab..378c20cf6 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -363,15 +363,15 @@ function linker:linkflags(target)
-- add flags from the linker
self:_addflags_from_linker(flags)
- -- add links from the configure
- self:_addlinks_from_config(flags)
-
-- add links from the target
self:_addlinks_from_target(flags, target)
-- add flags from the platform
self:_addlinks_from_platform(flags)
+ -- add links from the configure
+ self:_addlinks_from_config(flags)
+
-- remove repeat
flags = table.unique(flags)