I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries?
You could extract the object files from each library with
ar x <library name>
and then merge them all into a new library with
ar cs <new library name> <list each extracted object file>