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


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 ...


Thank you for your help!

--
Best regards,
Andrzej Bialecki     <><
___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com



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