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

L.D. Paniak ldpaniak at fourpisolutions.com
Tue Mar 10 17:20:15 EDT 2009

Hash: SHA1

Why don't you start pruning your list of libs, compile, run and see if
anything breaks/complains?  No break -> not needed

Too naive?  Hope your list of libraries isn't too long...

Robert P. J. Day wrote:
>   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
> ========================================================================
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
Version: GnuPG v1.4.6 (GNU/Linux)


More information about the kwlug-disc mailing list