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: Static executables


Andrzej Bialecki writes:
 > Andrew Haley wrote:
 > >  > # this depends on ncurses, but we're not linking now
 > >  > gcj -c Toolkit.c -fjni -findirect-dispatch -o Toolkit.o
 > >  > 
 > >  > gcj -c charva.jar -fjni -findirect-dispatch -o charva.o
 > >
 > > This looks wrong.  The "Statically linking libgcj" page doesn't
 > > recommend indirect dispatch, and it won't work.  If you want to link
 > > statically you must use the C++ ABI, not indirect dispatch.
 > 
 > Ok.
 > 
 > > As for JNI, as far as I'm aware it requires dynamic loading.
 > >   
 > 
 > Hmm, I didn't know that :-( . Then I think I have to give up on this, 
 > since the JNI part is vital in this case ...

I don't know JNI well enough to be sure.  Maybe someone else can help.

Andrew.


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