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


Am I correct to "assume" that libgcj would be a little smaller without
the GUI classes compiled in?
I think it'll be between 0.5-0.75% in size without the graphics. And in an embedded system, this is rather much... However, I'll return with a more accurate size as soon as I succeed... :-)
Having modified libjava/Makefile.am (and thereby indirectly Makefile.in) slightly, I now have a libgcj.so half the size compared to before. The stripped version is slightly less than 6mb., whereas it was 11mb. before.
I've removed (almost) all graphics-related packages (see prior postings for "almost")...


I've attached the patch for Makefile.am if anybody wants to see the diffs. Remember to run automake (from ftp://sources.redhat.com/pub/java/automake-gcj-1.4.tar.gz)
in order to update Makefile.in.


Regards,
 Martin
--- libjava.org/Makefile.am	2004-01-24 21:47:28.000000000 +0100
+++ libjava.patched/Makefile.am	2004-07-19 11:17:53.062597336 +0200
@@ -869,6 +869,13 @@
 special_java_source_files = java/lang/Class.java java/lang/Object.java
 
 awt_java_source_files =	\
+java/awt/AWTPermission.java \
+java/beans/PropertyChangeEvent.java \
+java/beans/PropertyChangeListener.java \
+java/beans/PropertyChangeListenerProxy.java \
+java/beans/PropertyChangeSupport.java
+
+old_awt_java_source_files =	\
 gnu/awt/LightweightRedirector.java \
 gnu/awt/j2d/AbstractGraphicsState.java \
 gnu/awt/j2d/DirectRasterGraphics.java \
@@ -1679,6 +1686,9 @@
 gnu/java/rmi/server/UnicastServerRef.java
 
 javax_source_files = \
+javax/security/auth/x500/X500Principal.java
+
+old_javax_source_files = \
 javax/accessibility/Accessible.java \
 javax/accessibility/AccessibleAction.java \
 javax/accessibility/AccessibleBundle.java \
@@ -2780,6 +2790,9 @@
 
 #java/awt/natToolkit.cc
 
+nat_awt_source_files = \
+gnu/java/awt/natEmbeddedWindow.cc
+
 ## This lists all the C++ source files in subdirectories.
 nat_source_files = \
 gnu/gcj/natCore.cc \
@@ -2800,7 +2813,6 @@
 gnu/gcj/runtime/natStackTrace.cc \
 gnu/gcj/runtime/natStringBuffer.cc \
 gnu/gcj/runtime/natVMClassLoader.cc \
-gnu/java/awt/natEmbeddedWindow.cc \
 gnu/java/net/natPlainDatagramSocketImpl.cc \
 gnu/java/net/natPlainSocketImpl.cc \
 gnu/java/net/protocol/core/natCoreInputStream.cc \

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