This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Minor changes to improve libtool support of GCJ
- To: gcc-patches at gcc dot gnu dot org, java-patches at sources dot redhat dot com
- Subject: Minor changes to improve libtool support of GCJ
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 24 Jan 2001 00:24:15 -0200
- Organization: GCC Team, Red Hat
This prepares for the fix for the GCJ `-c -o'-detection problem that
follows soon. I'm checking it in.
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.
* libtool.m4 (_AC_LIBTOOL_GCJ): Pass $CPPFLAGS on.
Index: ltcf-gcj.sh
===================================================================
RCS file: /cvs/gcc/egcs/ltcf-gcj.sh,v
retrieving revision 1.3
diff -u -p -r1.3 ltcf-gcj.sh
--- ltcf-gcj.sh 2001/01/02 15:55:07 1.3
+++ ltcf-gcj.sh 2001/01/24 02:22:55
@@ -2,7 +2,7 @@
# ltcf-gcj.sh - Create a GCJ compiler specific configuration
#
-# Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
+# Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# Original GCJ support by:
@@ -38,7 +38,7 @@ objext=o
lt_simple_compile_test_code="class foo {}"
# Code to be used in simple link tests
-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {} (0); }'
+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
## Linker Characteristics
case "$host_os" in
Index: libtool.m4
===================================================================
RCS file: /cvs/gcc/egcs/libtool.m4,v
retrieving revision 1.4
diff -u -p -r1.4 libtool.m4
--- libtool.m4 2000/09/30 06:02:57 1.4
+++ libtool.m4 2001/01/24 02:22:56
@@ -1,5 +1,6 @@
## libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
-## Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
+## Copyright 1996, 1997, 1998, 1999, 2000, 2001
+## Free Software Foundation, Inc.
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
##
## This program is free software; you can redistribute it and/or modify
@@ -802,7 +803,7 @@ lt_save_CC="$CC"
lt_save_CFLAGS="$CFLAGS"
dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
dnl is set to the C++ compiler.
-AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="" \
+AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me