Static executables

Andrzej Bialecki ab@getopt.org
Tue Jan 31 16:00:00 GMT 2006


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




More information about the Java mailing list