a technique i have seen used (although i find it repugnant myself) keeps a copy of all the .o's around and uses an ar q to quickly rebuild the library from scratch. of course, this doesn't help with ranlib but there is no way in general to evade that; the work of figuring out where the symbols are has to be done by someone.