linking a .so with libgcj.a ?

Andrew Haley aph@redhat.com
Wed Dec 15 17:33:00 GMT 2004


Andi Vajda writes:
 > 
 > On Wed, 15 Dec 2004, Andrew Haley wrote:
 > 
 > > Andi Vajda writes:
 > > >
 > > > On Linux (gentoo 2.6.9), using gcj 3.4.3, built from sources,
 > > > I'm trying to create a .so (a python extension) that is
 > > > statically linked with libgcj.a instead of dynamically with
 > > > libgcj.so.5.
 > >
 > > In general this won't work, because DSOs need to be compiled PIC.
 > 
 > If I managed to produce a -fPIC libgcj.a, this would work then ?

I don't know if the linker is smart enough to resolve all the
dependencies from your .so to libgcj.  I would have to try it to find
out.

Andrew.



More information about the Java mailing list