Mercurial > projects > ldc
changeset 681:ca4a816f2440
Another link order fix.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 11 Oct 2008 22:14:16 +0200 |
parents | 703d9b4505f9 |
children | 518b8cc84369 |
files | gen/linker.cpp |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/linker.cpp Sat Oct 11 21:46:19 2008 +0200 +++ b/gen/linker.cpp Sat Oct 11 22:14:16 2008 +0200 @@ -217,6 +217,13 @@ // first the program name ?? args.push_back("gcc"); + // object files + for (int i = 0; i < global.params.objfiles->dim; i++) + { + char *p = (char *)global.params.objfiles->data[i]; + args.push_back(p); + } + // output filename std::string exestr; if (global.params.exefile) @@ -283,13 +290,6 @@ break; } - // object files - for (int i = 0; i < global.params.objfiles->dim; i++) - { - char *p = (char *)global.params.objfiles->data[i]; - args.push_back(p); - } - // print link command? if (!global.params.quiet || global.params.verbose) {