I am trying to compile a library "A" on my machine, & i have "C" & "D" optional dependencies of A installed at standard path as well as local/custom path , the libraries at custom path( -O3 ) are more optimized as compared to the libraries at standard path(-O0).
I compile library "A" by supplying path of local libraries using LDFLAGS(-L) and LIBS (-l) . and the library gets generated (libA.so or libA.a)!
ldd is a tool which can tell which libraries were linked against the executable.
- is there a equivalent tool which can tell which libraries were linked against the library ( i.e. ldd libscalapack.a )?
- is there a way to make sure that weather the optional libraries libraries were used while creating library A( libA.so/libA.a ) ?
- is there a way to surely tell which out of standard & local libraries were used while compiling ?
Eagerly Awaiting your replies.