Seems that I have found the solution! I was mixing .o and .a files together (object files + static libraries) inside merged .a file. I did ar-x to extract contents of .a file and then I merged all .o files into one final merged.a library
Sorry for the delay :)