I have 2 static Linux libraries, created by ar cr, libabc.a and libxyz.a. I want to merge them into one static library libaz
ar cr
libabc.a
libxyz.a
libaz
You can extract the object from both the .a files and create your .a file using the extracted .os:
.a
.o
ar -x libabc.a ar -x libxyz.a ar -c libaz.a *.o