help building custom libgcj

Martin Egholm Nielsen martin@egholm-nielsen.dk
Thu Jul 15 09:49:00 GMT 2004


>>>>>>In order to avoid building, say, awt, one should modify
>>>>>>"gcc-3.4.1/libjava/Makefile.(am|in)" and strip away all
>>>>>>references to "awt_java_source_files"?

>>>You need to use a special automake:
>>>ftp://sources.redhat.com/pub/java/automake-gcj-1.4.tar.gz
>>>Other automake versions dont have the needed Java support.
>>So that'll do the trick?!
Well, it created a Makefile.in of correct size.

>>It's enough to modify the "awt_java_source_files" the way I did it,
>>or is there anything else I've missed?
> It should be but no garantee.
Well, if I glance the Makefile.am a bit more thoroughly, I find that 
there is a list of files - namely "nat_source_files" - containing a 
reference to the file "gnu/java/awt/natEmbeddedWindow.cc".
This file references to e.g. "gnu/java/awt/EmbeddedWindow.h"
I guess this file is created by gcjh from 
"gnu/java/awt/EmbeddedWindow.java" (right?), but this file is no longer 
in my "awt_java_source_files" list. So, I'm not sure it'll work (haven't 
tried it though)?

>>(I rather ask before executing, because it takes a couple of hours
>>each time before I reach the point where it fails...)
> You can run "make" in <buildtree>/<arch-triplet>/libjava. No need to 
> rebuild full GCC again.
Well, I don't quite know the parameters for "configure" in order to get 
it to create the Makefile. The reason is that I'm using Crosstool...
Maybe I should start out building for my own x86 target... :o)

Regards,
  Martin




More information about the Java mailing list