This is the mail archive of the java-patches@sources.redhat.com 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]

Patch: Use --encoding when building libgcj


I think we need to isolate the libgcj build from the user's locale.
So I think we should pass --encoding=UTF-8 to the libgcj build.
libgcj is already UTF-8-safe from when I made the front end stricter
about checking the encoding.  However, I'm going to do a rebuild
before I commit this just to be sure.

2000-12-12  Tom Tromey  <tromey@redhat.com>

	* Makefile.in: Rebuilt.
	* Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
	option.
	(GCJCOMPILE): Use it.
	(JAVAC): Likewise.

Tom

Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libjava/Makefile.am,v
retrieving revision 1.118
diff -u -r1.118 Makefile.am
--- Makefile.am	2000/12/11 03:47:47	1.118
+++ Makefile.am	2000/12/13 05:54:59
@@ -71,11 +71,15 @@
 ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar$(EXEEXT)
 endif # CANADIAN
 
-GCJCOMPILE = $(LIBTOOL) --tag=GCJ --mode=compile $(GCJ) -fassume-compiled -fclasspath=$(here) -L$(here) $(JC1FLAGS) -MD -MT $@ -MF $(@:.lo=.d) -c
+## The compiler with whatever flags we want for both -c and -C
+## compiles.
+GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8
+
+GCJCOMPILE = $(LIBTOOL) --tag=GCJ --mode=compile $(GCJ_WITH_FLAGS) -fassume-compiled -fclasspath=$(here) -L$(here) $(JC1FLAGS) -MD -MT $@ -MF $(@:.lo=.d) -c
 GCJLINK = $(LIBTOOL) --mode=link $(GCJ) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
 LIBLINK = $(LIBTOOL) --mode=link $(CC) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
 
-JAVAC = $(GCJ) -C
+JAVAC = $(GCJ_WITH_FLAGS) -C
 
 EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@
 

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