Create an archive with files and an accompanying object file index

ar

ar -rs {{path/to/file.a}} {{path/to/file1.o}} {{path/to/file2.o}}

click the source code to copy install ar on any operating system with command-not-found.com