This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking a .so with libgcj.a ?



Linking with libgcj.a on Windows with Mingw 3.4.2 works fine, isn't it the same linker originally ?


Andi..

On Wed, 15 Dec 2004, Andrew Haley wrote:

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]