mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Pass library file arguments to linker _before_ custom switches.
This allows specifying a static D library specified at the LDC command line to pick up symbols from druntime/Phobos. Fixes DMD testcase 'test39'.
This commit is contained in:
parent
4b23e794ca
commit
6b1b84a28d
1 changed files with 7 additions and 7 deletions
|
@ -83,6 +83,13 @@ int linkObjToBinary(bool sharedLib)
|
||||||
args.push_back(p);
|
args.push_back(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// user libs
|
||||||
|
for (unsigned i = 0; i < global.params.libfiles->dim; i++)
|
||||||
|
{
|
||||||
|
char *p = static_cast<char *>(global.params.libfiles->data[i]);
|
||||||
|
args.push_back(p);
|
||||||
|
}
|
||||||
|
|
||||||
// output filename
|
// output filename
|
||||||
std::string output;
|
std::string output;
|
||||||
if (!sharedLib && global.params.exefile)
|
if (!sharedLib && global.params.exefile)
|
||||||
|
@ -147,13 +154,6 @@ int linkObjToBinary(bool sharedLib)
|
||||||
args.push_back(p);
|
args.push_back(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
// user libs
|
|
||||||
for (unsigned i = 0; i < global.params.libfiles->dim; i++)
|
|
||||||
{
|
|
||||||
char *p = static_cast<char *>(global.params.libfiles->data[i]);
|
|
||||||
args.push_back(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
// default libs
|
// default libs
|
||||||
bool addSoname = false;
|
bool addSoname = false;
|
||||||
switch(global.params.os) {
|
switch(global.params.os) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue