From the man page of ldd:
Quote:
ldd prints the shared libraries required by each program or shared library specified on the command line.
|
(emphasis added)
So, as an example:
Code:
$ ldd /bin/ls
linux-gate.so.1 => (0xb7859000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7837000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb781c000)
libacl.so.1 => /lib/libacl.so.1 (0xb7813000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb76b9000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb76a0000)
/lib/ld-linux.so.2 (0xb785a000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb769c000)
libattr.so.1 => /lib/libattr.so.1 (0xb7696000)
$ ldd /lib/libattr.so.1
linux-gate.so.1 => (0xb785f000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb76e6000)
/lib/ld-linux.so.2 (0xb7860000)
Also, the naming convention of libraries is that *.so libraries are dynamically linked whereas *.a libraries are statically linked. However, the only way that I know of to verify that a library uses dynamic linking is to use ldd as shown above.