Alan Coopersmith wrote:
> Casper.Dik at Sun.COM wrote:
>>> Isn't mlib for media enhancements?  Does it come in as a result of 
>>> the GTK or Cairo?
> 
> Yes - mlib, aka MediaLib, does things like VIS/MMX acceleration for jpeg
> decoding, and is used by GTK.
> 
>>
>> Indirectly imported libraries should not be listed as "NEEDED"; they
>> should only be listed as dependencies for the libraries themselves.
> 
> That's the Solaris theory.   The pkg-config data files used by GTK
> list all the dependencies for crippled/non-ELF platforms that don't
> support library dependencies (or static linking).
> 

By adding a -zignore to the LD_OPTIONS, I've manage to reduce the
direct dependencies of the wireshark executable to:


        [0]  NEEDED            0xfd18              libwiretap.so.0
        [1]  NEEDED            0xfd28              libwireshark.so.0
        [2]  NEEDED            0xfd3a              libnetsnmp.so.5
        [3]  NEEDED            0xfc95              libsocket.so.1
        [4]  NEEDED            0xfd4a              libgtk-x11-2.0.so.0
        [5]  NEEDED            0xfd5e              libgdk-x11-2.0.so.0
        [6]  NEEDED            0xfd72              libgdk_pixbuf-2.0.so.0
        [7]  NEEDED            0xfcad              libm.so.2
        [8]  NEEDED            0xfd89              libpango-1.0.so.0
        [9]  NEEDED            0xfd9b              libgobject-2.0.so.0
       [10]  NEEDED            0xfcc0              libpthread.so.1
       [11]  NEEDED            0xfcd9              libthread.so.1
       [12]  NEEDED            0xfdaf              libglib-2.0.so.0
       [13]  NEEDED            0xfce8              libnsl.so.1
       [14]  NEEDED            0xfcf4              libc.so.1

libwireshark.so still has the following dependencies:

        [0]  NEEDED            0xba2c5             libgmodule-2.0.so.0
        [1]  NEEDED            0xba2d9             libglib-2.0.so.0
        [2]  NEEDED            0xba2ea             libgnutls.so.12
        [3]  NEEDED            0xba2fa             libgcrypt.so.11
        [4]  NEEDED            0xba30a             libgpg-error.so.0
        [5]  NEEDED            0xba31c             libnetsnmp.so.5
        [6]  NEEDED            0xba241             libsocket.so.1
        [7]  NEEDED            0xba259             libm.so.2
        [8]  NEEDED            0xba26c             libnsl.so.1
        [9]  NEEDED            0xba281             libz.so.1
       [10]  NEEDED            0xba28b             libc.so.1
       [11]  NEEDED            0xba2af             libgcc_s.so.1

- Bart


-- 
Bart Smaalders                  Solaris Kernel Performance
barts at cyber.eng.sun.com              http://blogs.sun.com/barts

Reply via email to