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: help building custom libgcj


But how do I configure the build scripts to build libgcj.so
with optimisation-level "-Os"?
Build with "make GCJFLAGS=-Os CFLAGS=-Os CXXFLAGS=-Os".
Great, I'll try to merge this into Crosstool's scripts...

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"?
This will not work as some AWT classes are referenced from outside AWT. AWTException comes to my mind ...
Well, I just grep'ed the entire j2sdk-1.4.2 source for references to AWTException, and this is what came out:

java/awt/Cursor.java
java/awt/Window.java
java/awt/peer/ComponentPeer.java
java/awt/GraphicsConfiguration.java
java/awt/im/spi/InputMethodDescriptor.java
java/awt/Robot.java
java/awt/Component.java
java/awt/AWTException.java
java/awt/Canvas.java
java/awt/dnd/DragSource.java

Regards,
 Martin



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