The Library Optimizer is a tool used to reduce the size of shared libraries for an embedded system or other size-contrained environment. The Library Optimizer examines the complete target file system, resolves all shared library symbol references, and rebuilds the shared libraries with only the object files required to satisfy the symbol references.
The Library Optimizer is invoked as follows:
libopt [-s] [ -d ]
should be the base directory of the full target filesystem tree. It must include all the executable programs and shared libraries that will be present on the target.
The optional specifies an alternate directory where the optimized libraries will be placed. If is not specified, will be used as the destination, overwriting the original target libraries.
The optional argument "-s" should be specified if the optimized libraries should be stripped. This can greatly reduce the size of the optimized libraries, but reduces the amount of debugging information available.