DSL Ideas and Suggestions :: can we remove the fltk libs?
I was looking at the size of flua compared to the size of regular old lua and it's about 3X as large. It looks almost like the portions it uses of the fltk libs were compiled into it. I see we have two libs called
I removed those two libs (618376 + 56852 = 675228 bytes) and it looked like flua still worked. Do those libs get used by any other programs?
I ran ldd on flua to make sure that it doesn't call those libraries:
dsl@box:~$ ldd /bin/flua libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40019000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40026000) libm.so.6 => /lib/libm.so.6 (0x400e2000) libc.so.6 => /lib/libc.so.6 (0x40104000) libdl.so.2 => /lib/libdl.so.2 (0x40232000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)Flua is just one file, so i assume you're right that it doesn't use any external lua or fltk files. It's possible that those libs are/were used by another application, such as flwriter.well going by your assumption, then it needn't be herre anymore! Ted has been placed back into its rightful throne(sic) hooray for more spaceMikshaw, That's true, but how can you check every applications. I wrote this little script that runs ldd on every file in a directory that has the ELF magic cookie in it's header. I assumed that they would be the only files that needed to be tested. Is that true?
Code Sample
#!/bin/bash
if [ ! -d $1 ]; then COOKIE=`head -c4 $1` if [ `echo $COOKIE | tail -c4` = "ELF" ]; then
if ( ldd $1 | grep fltk ); then echo found in file: $1 fi fi fi
I ran this on /bin, /usr/bin, and /usr/X11R6/bin but found no matches. This line works as well to look for matches:
for i in /usr/X11R6/bin/*; do ldd $i | grep fltk; doneFLwriter uses a modified fltk library of which you have found. Since it is modified, i.e., a non-standard library it is most unlikely that any other app would be using it.Next Page...
original here.