This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: libjava -vs- shared libgcc
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: libjava -vs- shared libgcc
- From: Tom Tromey <tromey at redhat dot com>
- Date: 21 Mar 2001 11:49:34 -0700
- Reply-To: tromey at redhat dot com
Like the boehm-gc patch, this one is required to get libjava to build
on PPC Linux. I'm checking this in on the trunk and the branch.
2001-03-21 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
* configure.in (GCJFLAGS): Subst.
* Makefile.in: Rebuilt.
* Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
(gij_LDFLAGS): Likewise.
(JC1FLAGS): Added GCJFLAGS and removed -g.
Tom
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.73.2.1
diff -u -r1.73.2.1 configure.in
--- configure.in 2001/02/22 04:22:23 1.73.2.1
+++ configure.in 2001/03/21 18:39:13
@@ -779,6 +779,8 @@
here=`pwd`
AC_SUBST(here)
+# We get this from the environment.
+AC_SUBST(GCJFLAGS)
AC_OUTPUT(Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile,
[if test -n "$CONFIG_FILES"; then
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.129.2.2
diff -u -r1.129.2.2 Makefile.am
--- Makefile.am 2001/02/22 04:22:22 1.129.2.2
+++ Makefile.am 2001/03/21 18:39:15
@@ -106,7 +106,7 @@
endif
JCFLAGS = -g
-JC1FLAGS = -g @LIBGCJ_JAVAFLAGS@
+JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
LIBFFIINCS = -I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include
@@ -416,7 +416,7 @@
## need this because we are explicitly using libtool to link using the
## `.la' file.
jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
- -rpath $(toolexeclibdir)
+ -rpath $(toolexeclibdir) -shared-libgcc
jv_convert_LINK = $(GCJLINK)
## We explicitly link in the libraries we need. This way we don't
## need -nodefaultlibs, so we can still rely on gcj picking up the
@@ -434,7 +434,7 @@
## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
## need this because we are explicitly using libtool to link using the
## `.la' file.
-gij_LDFLAGS = -rpath $(toolexeclibdir)
+gij_LDFLAGS = -rpath $(toolexeclibdir) -shared-libgcc
gij_LINK = $(GCJLINK)
## We explicitly link in the libraries we need. This way we don't
## need -nodefaultlibs, so we can still rely on gcj picking up the