LDD(1)

NAME
ldd - print shared library dependencies

SYNOPSIS
ldd [ -vV ] program ...

DESCRIPTION
ldd prints the shared libraries required by each program specified on the command line.

Actually, ldd simply forks and execs each program with argc equal to zero. The startup code or dynamic linker, ld.so, which normally loads the shared libraries, notices this special case and prints the dependencies.

OPTIONS

-v  Print the version number of ldd.

-V  Print the version number of the dynamic linker, ld.so.

BUGS
ldd will not work with some extremely old programs which were linked before ldd support was added to the compiler releases. If you use ldd on one of these programs, the program will attempt to run with argc = 0 and the results will be unpredictable.

AUTHOR
David Engel.

SEE ALSO
ldconfig(8), ld.so(8).