Re: unused dependencies of shared libraries

2008-04-14 Thread Serhat
greetings,
i noticed some mistake with my script as well as some varieties with
ldd's output.
there are many libraries with 30+ unused dependencies on my xubuntu
7.10 amd64 desktop installation (on a dell core2 laptop).
here is a very much improved version of the script. its output on my machine is:

$ ./s1.sh > o.txt
888 of 1183 shared libraries found are sub-optimal
Avg # of unused dependencies for those: 6.351
(36 weird, 6 statically linked or not dynamic)

i think the script even underestimates the real number of unused
dependencies (we are able to catch an unused dependency that is on a
standard location like [/usr]/lib but others we dont count cuz we dont
know what the path must be, if at all should be something)..

thx..

ps: afaik, for most foss programs, when compiling a package from
source, just adding LDFLAGS='-Wl,-O1,--as-needed' to the ./configure
command eliminates unused dependencies.


s1.sh
Description: Bourne shell script
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


unused dependencies of shared libraries

2008-04-10 Thread Serhat
greetings. i was reading Mr Drepper's blog (http://udrepper.livejournal.com/)
and got curious of how many such sub-optimal shared libraries there would be
in /usr/lib of a typical installation of xubuntu 7.10 64-bit desktop on a
dell core2 laptop.
the result is amazingly many :)

$ ./s1.sh > out.txt
922 of 1216 libraries found are sub-optimal
Avg # of unused dependencies for those: 6.517

if we didnt have these unused dependencies, would the laptop/xfce boot up
significantly faster for instance?

ps: initially i sent this to ubuntu-devel but i guess that is just for
developers..


s1.sh
Description: Bourne shell script
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss