This is the mail archive of the java-patches@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: [ecj] Patch: FYI: enable tools


Tom Tromey writes:
 > I'm checking this in on the gcj-eclipse-merge-branch.
 > 
 > This fixes up the tools:
 > 
 > * Re-enables the tools that were disabled in a previous merge
 > * Adds tools that were in Classpath but not libgcj (e.g., javah)
 > * Removes libgcj's copy of rmic

A couple of bugs with debuginfo.

1.  No "-g".
2.  You need to pass to gcj the command -fsource-filename=

This is how I did it for libgcj.lo:


2006-07-07  Andrew Haley  <aph@redhat.com>

	* Makefile.am: Use -fsource-filename when compiling libgcj.
	* Makefile.in: Regenerate.

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 115263)
+++ Makefile.am	(revision 115264)
@@ -324,7 +324,7 @@
 ## Compiling a list of java sources to a single .o.
 
 %.lo: %.list
-	$(LTGCJCOMPILE) -c -o $@ -MT $@ -MD -MP -MF $(basename $@).deps @$<
+	$(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
 
 java/lang/Object.lo: classpath/lib/java/lang/Object.class
 	$(LTGCJCOMPILE) -c -o $@ $<


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