GNU Info

Info Node: (libtool.info)Archivers

(libtool.info)Archivers


Prev: Multiple dependencies Up: Platform quirks
Enter node , (file) or (file)node

Archivers
---------

   On all known systems, building a static library can be accomplished
by running `ar cru 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.


automatically generated by info2www version 1.2.2.9