linking a .so with libgcj.a ?
Andi Vajda
andi@osafoundation.org
Wed Dec 15 17:36:00 GMT 2004
Linking with libgcj.a on Windows with Mingw 3.4.2 works fine, isn't it the
same linker originally ?
Andi..
On 2004年12月15日, Andrew Haley wrote:
> Andi Vajda writes:
> >
> > On 2004年12月15日, 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