Issue #42 — Multilib: --no-warn-search-mismatch.

Pass -Xlinker before every additional linker switch, so gcc will,
in its turn, pass the switch to ld.
This commit is contained in:
Alexey Prokhin
2011-12-09 12:34:47 +04:00
parent eb6809a530
commit dd6b89e182

View File

@@ -301,6 +301,7 @@ int linkObjToBinary(bool sharedLib)
for (unsigned i = 0; i < global.params.linkswitches->dim; i++)
{
char *p = (char *)global.params.linkswitches->data[i];
args.push_back("-Xlinker");
args.push_back(p);
}