This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Re: 4.2/4.3 PATCH: Override SYSTEMSPEC for IRIX 6


Tom Tromey writes:

> >>>>> "Rainer" == Rainer Orth <ro@techfak.uni-bielefeld.de> writes:
> 
> Rainer> Ok for 4.2 branch (after the 4.2.1 release, I suppose) and
> Rainer> mainline if it passes?
> 
> Rainer> Tue Jul 10 20:23:52 2007  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
> Rainer> 	* configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
> Rainer> 	* configure: Regenerate.
> 
> Gross!  But ok :-)

Unfortunately, the first patch was wrong as testing revealed.  This one
works as expected:

Index: configure.ac
===================================================================
--- configure.ac	(revision 126745)
+++ configure.ac	(working copy)
@@ -1247,7 +1247,16 @@ else
    # On Solaris, and maybe other architectures, the Boehm collector
    # 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}"
+	  ;;
+	  *)
+            AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
+	  ;;
+      esac
    fi
 fi
 
I suppose the new patch is still ok?

Even with this patch, most execution tests fail on the 4.2 branch due to PR
libgcj/21953.

	Rainer


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