[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Split classes list for gcj
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] Split classes list for gcj |
Date: |
Thu, 11 Nov 2004 16:12:41 +0100 |
Hi,
On Mon, 2004-11-08 at 00:23, Mark Wielaard wrote:
> This incredible lame patch splits the classes list in three parts to
> make compilation with gcj possible on machines with less than 256MB of
> memory.
>
> 2004-11-07 Mark Wielaard <address@hidden>
>
> * lib/gen-classlist.sh.in: Split in classes list in standard, awt
> and standardx lists.
> * lib/Makefile.am (FOUND_GCJ): Split compilation in three parts.
> (CLEANFILES): Add classes.standard, classes.awt and classes.standardx.
I checked this in with one small change. The gcj invocations now have a
-Wno-deprecated to silence to compile warning about deprecated method
(which only works reliably with 3.4 or higher, with gcj 3.3 you still
get some warnings strangely enough). Revised patch atteched.
Cheers,
Mark
Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/classpath/classpath/lib/Makefile.am,v
retrieving revision 1.68
diff -u -r1.68 Makefile.am
--- lib/Makefile.am 9 Oct 2004 16:38:56 -0000 1.68
+++ lib/Makefile.am 11 Nov 2004 15:15:02 -0000
@@ -18,7 +18,9 @@
# handling source to bytecode compiler programs like gcj, jikes and kjc
if FOUND_GCJ
-JAVAC = $(GCJ) --bootclasspath '' --classpath
$(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes
+JAVAC = $(GCJ) --bootclasspath '' --classpath
$(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d .
@classes.standard \
+&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath
$(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d .
@classes.awt \
+&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath
$(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d .
@classes.standardx
else
if FOUND_JIKES
JAVAC = $(JIKES) +F -bootclasspath '' -extdirs '' -sourcepath '' --classpath
$(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -d . @classes
@@ -86,7 +88,8 @@
touch compile-classes
EXTRA_DIST = standard.omit mkcollections.pl.in
-CLEANFILES = compile-classes resources classes glibj.zip classes.1 \
+CLEANFILES = compile-classes resources classes \
+ classes.standard classes.awt classes.standardx glibj.zip classes.1 \
$(JAVA_DEPEND)
clean-local:
Index: lib/gen-classlist.sh.in
===================================================================
RCS file: /cvsroot/classpath/classpath/lib/gen-classlist.sh.in,v
retrieving revision 1.15
diff -u -r1.15 gen-classlist.sh.in
--- lib/gen-classlist.sh.in 9 Oct 2004 16:38:56 -0000 1.15
+++ lib/gen-classlist.sh.in 11 Nov 2004 15:15:02 -0000
@@ -26,3 +26,9 @@
echo $i "\\" >> ${top_builddir}/lib/java.dep
done
fi
+
+# Split in multiple parts for gcj
+grep -v /javax/ classes | grep -v /awt/ | grep -v /beans/ > classes.standard
+grep /awt/ classes > classes.awt
+grep /beans/ classes >> classes.awt
+grep /javax/ classes > classes.standardx
signature.asc
Description: This is a digitally signed message part