libgcc_s.so.1 and libgcj.so.4

David Young dvd@OCF.Berkeley.EDU
Sat Apr 19 15:53:00 GMT 2003


Hi Erik,

I seem to have statically linked libgcc_s.a and libgcj.a by configuring 
the gcc suite with the option "--disable-shared".  When I run ldd on my 
gcj/swt-motif app, I get the following results:

    libswt-motif-2133.so => motif/libswt-motif-2133.so (0x40017000)
    libXm.so.2 => motif/libXm.so.2 (0x4005c000)
    libm.so.6 => /lib/i686/libm.so.6 (0x40206000)
    libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40229000)
    libdl.so.2 => /lib/libdl.so.2 (0x40279000)
    libc.so.6 => /lib/i686/libc.so.6 (0x4027d000)
    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x403b5000)
    libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40494000)
    libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x404e6000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
    libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x404ef000)
    libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x404fd000)
    libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40506000)

which do not include libgcc_s.so.1 or libgcj.so.4, as opposed to my app 
binary from my "--enable-shared" gcc configurations.  Does disabling 
sharing, however, create other complications for the application?

-David



More information about the Java mailing list