Thursday, May 17. 2007

Recursive ldd

Yesterday, Dario Lesca asked for a recursive ldd on the fedora mailing list. I see two possibilities:

  1. Extend the ldd script to accept an '-r' option and search for dynamic libraries recursively.
  2. Write a script that reads in the output from ldd and recalls ldd to resolve the dependencies.

I opted for the second approach (ever tried to shell script platform-independently?). You can find the resulting ldd-rec.pl script here.