c - Get list of libraries used in a library -


i trying compile library "a" on machine, & have "c" & "d" optional dependencies of a installed @ standard path local/custom path , libraries @ custom path( -o3 ) more optimized compared libraries @ standard path(-o0).

i compile library "a" supplying path of local libraries using ldflags(-l) , libs (-l) . , library gets generated (liba.so or liba.a)!

ldd tool can tell libraries linked against executable.

  • is there equivalent tool can tell libraries linked against library ( i.e. ldd libscalapack.a )?
  • is there way make sure weather optional libraries libraries used while creating library a( liba.so/liba.a ) ?
  • is there way surely tell out of standard & local libraries used while compiling ?

eagerly awaiting replies.

tell linker want load map (-wl,-map -wl,mapfile if you're using gcc). tell libraries have been used during link phase.

in case of shared libraries, doesn't mean exact same libraries used during program execution, depends on configuration of dynamic loader.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -