This is the mail archive of the 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]

Patch: Fix "make clean" in libjava

Hi People,

Michael Koch pointed out to me that "make clean" is
broken under libjava because of command-line-length
issues. At first, I thought that this was because
of my "compile all sourcefiles" patch, but looking
into this, I don't see how that patch could have anything
to do with this issue. Anyway, this patch aims
to fix "make clean".

Tested on (i686-pc-linux-gnu,i686-pc-linux-gnu,i686-pc-mingw32).
Okay to commit?

P.S. This patch's behavior is equivalent to the pre-patch
behavior in that it only deletes .lo files and not .o files.
Is this correct?

-- Mohan

2003-09-13  Mohan Embar  <>

	* (MOSTLYCLEANFILES) Removed $(javao_files)
	because of command-line-length issues.
	(mostlyclean-local): New target patterned after clean-local
	which recursively deletes all .lo files.
	* Rebuilt.

RCS file: /cvsroot/gcc/gcc/libjava/,v
retrieving revision 1.320
diff -u -2 -r1.320
---	10 Sep 2003 17:39:09 -0000	1.320
+++	13 Sep 2003 21:46:16 -0000
@@ -357,6 +357,10 @@
 $(all_java_class_files): libgcj-@gcc_version@.jar
-MOSTLYCLEANFILES = $(javao_files) $(nat_files) $(nat_headers) $(c_files) $(x_javao_files) $(x_nat_files) $(x_nat_headers)
+MOSTLYCLEANFILES = $(nat_files) $(nat_headers) $(c_files) $(x_javao_files) $(x_nat_files) $(x_nat_headers)
 CLEANFILES = libgcj-@gcc_version@.jar
+## We just remove every .lo file that was created.
+	find . -name '*.lo' -print | xargs rm -f

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