Maintain a group of
files that are combined into
Used most commonly to create and update library files as used by the
link editor (ld). Only one key letter may be used, but each
can be combined with additional
args (with no separations between).
posname is the name of a file in
archive. When moving or
files, you can specify that they be placed
before or after
posname. See lorder for another example.
-V prints the version number of ar on standard error.
files to end of
List the contents of
archive or list the named
Extract contents from
archive or only the named
Use with r or m to place
in the archive after
Same as a but before
Same as b.
Place temporary files in local directory rather than /tmp (SVR3 only).
Force regeneration of
archive symbol table
(useful after running strip or mcs).
Use with r to replace
files that have changed since being put in
Verbose; print a description.
Replace mylib.a with object files from the current directory:
ar r mylib.a `ls *.o`