File: libtool.info, Node: Archivers, Next: Cross compiling, Prev: Multiple dependencies, Up: Platform quirks 15.3.4 Archivers ---------------- On all known systems, building a static library can be accomplished by running ‘ar cr libNAME.a OBJ1.o OBJ2.o ...’, where the ‘.a’ file is the output library, and each ‘.o’ file is an object file. On all known systems, if there is a program named ‘ranlib’, then it must be used to "bless" the created library before linking against it, with the ‘ranlib libNAME.a’ command. Some systems, like Irix, use the ‘ar ts’ command, instead.