This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
4.2/4.3 PATCH: Override SYSTEMSPEC for IRIX 6
- From: Rainer Orth <ro at techfak dot uni-bielefeld dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 12 Jul 2007 19:37:24 +0200 (MEST)
- Subject: 4.2/4.3 PATCH: Override SYSTEMSPEC for IRIX 6
As mentioned in
http://gcc.gnu.org/ml/java-patches/2007-q3/msg00038.html
all N64 libjava link tests fail on mips-sgi-irix6.5: the libgcj.spec file
for the default multilib (N32 in this case) is used for all ABIs, but is
wrong for N64 where no libdl exists. I've manually modified the spec file
to handle this and confirmed that the link tests now work as expected. A
full bootstrap on the 4.2 branch with the patch below is in progress. I
cannot yet test on mainline due to PR libgcj/32652.
Ok for 4.2 branch (after the 4.2.1 release, I suppose) and mainline if it
passes?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Tue Jul 10 20:23:52 2007 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
* configure: Regenerate.
Index: libjava/configure.ac
===================================================================
--- libjava/configure.ac (revision 126588)
+++ libjava/configure.ac (working copy)
@@ -1249,6 +1249,13 @@ else
# requires -ldl.
if test "$GC" = boehm; then
AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
+ case "${host}" in
+ mips-sgi-irix6*)
+ # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
+ # libgcj.spec is used, so override here
+ SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
+ ;;
+ esac
fi
fi