Code: Select all
for x in ${PATH//://* }/* ; do [ -x "$x" ] && objdump -x $x 2>/dev/null & done|grep NEEDED|sort |uniq -c |sort -n >binaudit
now open binaudit in your text editor and get to work, starting with the ones that are needed only once ... you can build them in statically
The ones that are used the most would benefit the most tools by improving their compiles (I will discuss that later)
I'll go over optimization techniques soon.