Re: custom libgcj

Bryce McKinlay <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On Mon, Apr 20, 2009 at 12:41 PM, abhishek desai <[email protected]> wrote:

> I want to customize libgcj compilation to include only the garbage
> collector part and other required files for a simple java program to
> compile and execute in native using gcj. Then I want to add my own
> java files to libgcj. Is there some way this can be done? Which files
> can I edit for this ?

This would certainly be a very useful feature. Unfortunately, there is
no easy way to do it. You could edit Makefile.am files by hand to
remove classes you don't want, but you're likely to get missing symbol
errors at link time due to the way libgcj is compiled.

One solution would be to compile libgcj with the bc-abi, which results
in the class library being linked more dynamically. There are,
however, some technical challenges that would need to be overcome to
make that happen...

Bryce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.