mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Another link order fix.
This commit is contained in:
parent
5a8716d539
commit
b4e57e83eb
1 changed files with 7 additions and 7 deletions
|
@ -217,6 +217,13 @@ int linkObjToExecutable(const char* argv0)
|
||||||
// first the program name ??
|
// first the program name ??
|
||||||
args.push_back("gcc");
|
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
|
// output filename
|
||||||
std::string exestr;
|
std::string exestr;
|
||||||
if (global.params.exefile)
|
if (global.params.exefile)
|
||||||
|
@ -283,13 +290,6 @@ int linkObjToExecutable(const char* argv0)
|
||||||
break;
|
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?
|
// print link command?
|
||||||
if (!global.params.quiet || global.params.verbose)
|
if (!global.params.quiet || global.params.verbose)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue