« Return to Thread: libgcj_bc.so not embedded

Re: libgcj_bc.so not embedded

by Andrew Haley :: Rate this Message:

Reply to Author | View in Thread

Mohsen Saboorian writes:
 >
 > > It's not supposed to be.  The idea is that you compile your program
 > > and it dynamically links with the libgcj installed on the system.
 >
 > Then what happens for example in Windows, where there is no such
 > linkable library. Is it possible to statically link my program with
 > this .so file so that there would be an absolute stand-alone
 > application?

Not quite, but you can link using -static-libgcj.  It doesn't work for
all Java programs, and in general it's a bad idea.  Why do you want to
do this, anyway?

Andrew.

--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903

 « Return to Thread: libgcj_bc.so not embedded