[kwlug-disc] how to identify superfluous shared library references?

Robert P. J. Day rpjday at crashcourse.ca
Tue Mar 10 15:45:41 EDT 2009


  i'm looking at an executable that was built with a couple dozen "-l"
references to refer to shared libs to be linked at run time.  but only
a few of those libs are actually used -- the list of libs was copied
and pasted and is *way* overkill, but if you list them at compile
time, they're going to show up via "ldd" in the final executable.

  is there a way to identify which shared libs are actually being
*used* by an executable, and which are superfluous and can be dropped
from the list of libs during the compile step?

  they don't hurt, of course, except for taking up a small amount of
space in the executable, but if they're not necessary, i'd rather they
not be there.  thanks.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================




More information about the kwlug-disc mailing list