ranlib is used to create an index for a static library (.a file). It stores the list of functions to speed up linking.
ranlib libexample.a
Generates an index to the contents of an archive file (.a) to speed up access by compilers and linkers.
ranlib libexample.a