Converting a JAR into a gcj-statically-linked SO

Matthijs van de Water matthijs.van.de.water@gmail.com
Tue Jan 8 19:04:00 GMT 2008


On Jan 8, 2008 6:46 PM, David Daney <ddaney@avtrex.com> wrote:
> >  > That won't work.  The static libgcj (libgcj.a) is not compiled with
> >  > -fPIC, so it cannot be used in a shared object.

So this means that I cannot compile a shared library which does not
depend on libgcj?
Is there any other way I can get this to work (like patching gcc to
compile libgcj.a with -fPIC)?

My intended use of the resulting native code depends on the fact that
it can be a shared library, there is no way I would be able to
statically link it to the application.

Any suggestions greatly appreciated.

Matthijs



More information about the Java mailing list