hookenz
hookenz

Reputation: 38997

How can I scan for library dependencies automatically given the source tree?

I'm working on building a very minimal nfs root for a Xen Dom0 host, booted through pxe.

It requires all the xen tools to be installed. I haven't found a list anywhere but there are some indications by what packages people install to compile the hypervisor from scratch. However, much of that is for building xen, not post build.

I know there are tools around to scan running programs for library dependencies, but many of the xen tools are utilities that only run occasionally, and there are many.

Other than the very time consuming manual or trial and error approach, are there any development tools available under linux to scan the source files and/or compiled binaries to build up a list of dependencies?

If not, I suppose grepping for -ld might be a start in the Makefiles. What makes it harder is that Xen uses other languages like python and ocaml.

Upvotes: 0

Views: 279

Answers (2)

Ed Heal
Ed Heal

Reputation: 60047

Perhaps compiling using SCons with verbose output may be of some help

Upvotes: 0

meastham
meastham

Reputation: 146

Running ldd on compiled binaries on Linux will give you a list of required dynamic libraries.

Upvotes: 1

Related Questions