Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall -Wno-long-long flags variable.
authorMark Wielaard <mark@klomp.org>
Thu, 22 Apr 2004 23:22:23 +0000 (23:22 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Thu, 22 Apr 2004 23:22:23 +0000 (23:22 +0000)
       * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
       -Wno-long-long flags variable.
       (gtk_c_files): Use PEDANTIC_CFLAGS.
       * Makefile.in: Regenerated.

From-SVN: r81060

libjava/ChangeLog
libjava/Makefile.am
libjava/Makefile.in

index 1359677dd64759038d0f3cb10e1a1c3cb1afede4..53c81ea8256c921e78f7f5d53f344f1df97e8191 100644 (file)
@@ -1,3 +1,10 @@
+2004-04-22  Mark Wielaard  <mark@klomp.org>
+
+       * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
+       -Wno-long-long flags variable.
+       (gtk_c_files): Use PEDANTIC_CFLAGS.
+       * Makefile.in: Regenerated.
+
 2004-04-22  Mark Wielaard  <mark@klomp.org>
 
        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
index ff8f36d4a97850553efbe10a66dfd78888c41b58..d1733adc071ff6fdb5116c032c28ce3955d7808c 100644 (file)
@@ -120,6 +120,9 @@ else
 AM_CFLAGS = @LIBGCJ_CFLAGS@
 endif
 
+## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
+PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
+
 JCFLAGS = -g
 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
 
@@ -471,9 +474,11 @@ $(extra_cc_files): %.lo: %.cc
 $(c_files): java/lang/fdlibm.h java/lang/ieeefp.h java/lang/mprec.h
 
 ## FIXME: see above
+## These JNI C files are shared with GNU Classpath which needs PEDANTIC_CFLAGS.
 $(gtk_c_files): %.lo: %.c
        $(LTCOMPILE) -c -Ijniinclude -I$(srcdir)/jni/classpath -I$(srcdir)/jni/gtk-peer \
-       $(GTK_CFLAGS) $(LIBART_CFLAGS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) -o $@ $<
+       $(PEDANTIC_CFLAGS) $(GTK_CFLAGS) $(LIBART_CFLAGS) \
+       $(CAIRO_LIBS) $(PANGOFT2_LIBS) -o $@ $<
 
 $(gtk_c_files): $(gtk_c_headers)
 
index 12dd8283870e931b28d156bd75c1f082eb0ece88..66125bdda6c24b5090504fc04599d1a2af74eb59 100644 (file)
@@ -222,6 +222,8 @@ AM_CXXFLAGS = -fno-rtti -fnon-call-exceptions $(THREADCXXFLAGS) \
 @USING_GCC_TRUE@AM_CFLAGS = @USING_GCC_TRUE@@LIBGCJ_CFLAGS@ $(WARNINGS)
 @USING_GCC_FALSE@AM_CFLAGS = @USING_GCC_FALSE@@LIBGCJ_CFLAGS@
 
+PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
+
 JCFLAGS = -g
 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
 
@@ -3007,7 +3009,7 @@ libgcj-test.spec.in libgcj.pc.in libgcj.spec.in
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 DIST_SUBDIRS =  @DIRLTDL@ testsuite gcj include @DIRLTDL@ gcj include
 DEP_FILES =  .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
@@ -5376,7 +5378,8 @@ $(c_files): java/lang/fdlibm.h java/lang/ieeefp.h java/lang/mprec.h
 
 $(gtk_c_files): %.lo: %.c
        $(LTCOMPILE) -c -Ijniinclude -I$(srcdir)/jni/classpath -I$(srcdir)/jni/gtk-peer \
-       $(GTK_CFLAGS) $(LIBART_CFLAGS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) -o $@ $<
+       $(PEDANTIC_CFLAGS) $(GTK_CFLAGS) $(LIBART_CFLAGS) \
+       $(CAIRO_LIBS) $(PANGOFT2_LIBS) -o $@ $<
 
 $(gtk_c_files): $(gtk_c_headers)