defines[i->first] = i->second;
incpath.insert(incpath.begin(), bi.incpath.begin(), bi.incpath.end());
threads = bi.threads;
+
for(StandardMap::const_iterator i=bi.standards.begin(); i!=bi.standards.end(); ++i)
- standards[i->first] = i->second;
+ {
+ StandardMap::iterator j = standards.find(i->first);
+ if(j==standards.end())
+ standards.insert(*i);
+ else if(i->second.type!=j->second.type || i->second.year!=j->second.year)
+ {
+ if(!i->second.type.compare(0, 3, "gnu"))
+ j->second.type = i->second.type;
+ if(i->second.year>j->second.year)
+ j->second.year = i->second.year;
+ }
+ }
if(level!=CHAINED)
{