fix #667 flags list used as string

enable function and data sections
fix incorrect library search paths
This commit is contained in:
Andreas Hollandt 2014-07-16 18:14:58 +02:00
parent 491c180a54
commit 8af29baeda
9 changed files with 23 additions and 12 deletions

View file

@ -282,7 +282,9 @@ static int linkObjToBinaryWin(bool sharedLib)
}
// remove dead code and fold identical COMDATs
if (!opts::disableLinkerStripDead)
if (opts::disableLinkerStripDead)
args.push_back("/OPT:NOREF");
else
{
args.push_back("/OPT:REF");
args.push_back("/OPT:ICF");