[Libreoffice] Get rid of unused direct dependencies

Michael Meeks michael.meeks at novell.com
Mon Aug 22 05:57:20 PDT 2011


Hi Peter,

On Sat, 2011-08-20 at 18:18 +0200, Péter Rabi wrote:
> I'm interested in your opinion about the following problem of mine:

	:-)

> There are probably libraries and executables in LibO that are
> dynamically linked to libraries that they do not use.

	Ok ?

> I wrote some c++ code (attached) to find these needless dependencies. I
> was using `ldd -u foo' to fetch the "unused direct dependencies" of foo
> if its build is GnuMake-ified. The tool (libfilter) also removes the
> entries of these unnecessary libs from the proper makefile.

	Interesting; I don't quite know how you can do that with just ldd - you
surely need to check the symbols that are used as well.

	I'm wondering why you're not re-using, improving, and building on top
of Frank's:

	http://frehberg.wordpress.com/binscan/

	which would seem the obvious place to start here; clearly building
incrementally on that is far more valuable than creating new code here
(?).

	ATB,

		Michael.

-- 
 michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot




More information about the LibreOffice mailing list