This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: linking a .so with libgcj.a ?
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.