For a static library (.a file), how to list the module-level dependencies of it?
I know for a shared library (.so), we can use objdump or readelf to do
A static library have no such list of dependencies.
A static library is nothing more than an archive of object files. And as object files doesn't know what libraries they depend on, neither can a static library.
@Some programmer dude is right, but what you can do is build a simple program using this library statically and then check with ldd -v
what are the dependencies.