If you have the source code and don't want to go through all the code for this, you can generate map file while compiling to know which static libraries are linked.
For example g++ -Xlinker -Map=a.map main.c, check the map file for linked static library information.