result += 'd';
if(binfo.strip)
result += 's';
- result += ",l";
- result += join(binfo.libs.begin(), binfo.libs.end(), ",l");
+ if(!binfo.libs.empty())
+ {
+ result += ",l";
+ result += join(binfo.libs.begin(), binfo.libs.end(), ",l");
+ }
return result;
}
}
}
+ for(BuildInfo::WordList::const_iterator i=binfo.libs.begin(); i!=binfo.libs.end(); ++i)
+ if(i->size()>10 && !i->compare(i->size()-10, 10, ".framework"))
+ {
+ argv.push_back("-framework");
+ argv.push_back(i->substr(0, i->size()-10));
+ }
+
if(need_l_objc)
argv.push_back("-lobjc");
if(static_link_ok)