This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: libjava build is broken on SMP


Tom,

I think the following patch fixes the problem not just for header
files, but anything that depends on a classfile. I'm still doing a
build with this, but wanted to show you it already in case there's
anything blatantly wrong with this. If the build goes okay, I'll
submit it officially.

P.S. I had CVS connection problems so I used Ranjit's makepatch.sh
to generate this (http://ranjitmathew.tripod.com/phartz/gcj/crpatch.html).

Thanks Ranjit!

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/

ChangeLog
2003-08-28  Mohan Embar  <gnustuff@thisiscool.com>

	* Makefile.am: Fixed problems with parallel makes.
	(all_java_class_files): Readded definition.
	(all_java_class_files): New target which depends on
	libgcj-@gcc_version@.jar

Index: Makefile.am
===================================================================
--- Makefile.am	2003-08-28 14:27:51.000000000 -0500
+++ Makefile.am	2003-08-28 13:22:58.000000000 -0500
@@ -338,4 +338,6 @@
     $(x_java_source_files)
 
+all_java_class_files = $(all_java_source_files:.java=.class)
+
 libgcj-@gcc_version@.jar: $(all_java_source_files)
 	-@rm -f libgcj-@gcc_version@.jar
@@ -348,4 +350,6 @@
 	  $(ZIP) cfM0E@ $@
 
+$(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)
 CLEANFILES = libgcj-@gcc_version@.jar





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