for(vector<string>::const_iterator i=parts.begin(); i!=parts.end(); ++i)
{
string part = resolve_alias(*i);
- if(part!=type && part!=cpu && part!=system)
+ if((part=="32" && bits==32) || (part=="64" && bits==64))
+ ;
+ else if(part!=type && part!=cpu && part!=system)
return false;
}
return true;
{
syspath.push_back("/lib");
syspath.push_back("/usr/lib");
+ if(current_arch->match_name("pc-32-linux"))
+ syspath.push_back("/usr/lib/i386-linux-gnu");
+ else if(current_arch->match_name("pc-64-linux"))
+ syspath.push_back("/usr/lib/x86_64-linux-gnu");
}
else
syspath.push_back("/usr/"+current_arch->get_cross_prefix()+"/lib");