Choose the right ar for the specified platform.By default, the script uses the ar for the platform on which it is called. It can be used for a foreign architecture only if the needed crosskit is installed.
Â
 r.ar  -arch Destination architecture (HP-UX, IRIX64, SX6, Linux, Linux_alpha, AIX) of the library. For the SX6, sxar of the appropriate crosskit will be used. If this key is used, it must be the first of all options. [options of ar] Standard ar options (those options must follow the key -arch if used)
Author: Luc Corbeil (ARMN-SI) - 15/02/20031. Use of ar for the local machine to list the content of libtest.a
r.ar tv libtest.a2. Use of ar for SX6 to add test.o to libtest.a
r.ar -arch SX6 rv libtest.a test.o