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]

[libjava, build] Don't link libgcj with libdl on IRIX


Along the same lines as

	[boehm-gc, build] Don't link libgcjgc with libdl on IRIX
        http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00111.html

it isn't necessary to jump through hoops to avoid missing the 64-bit
libdl which no special library is necessary at all, thus the following
patch.

Bootstrapped without regressions on mips-sgi-irix6.5, installed.

	Rainer


2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac: Don't use libdl on mips-sgi-irix6*.
	* configure: Regenerate.

diff -r 93b23f40f874 libjava/configure.ac
--- a/libjava/configure.ac	Fri Jan 28 13:05:59 2011 +0100
+++ b/libjava/configure.ac	Fri Jan 28 13:08:24 2011 +0100
@@ -1460,15 +1460,14 @@
    if test "$GC" = boehm; then
       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}"
-	  ;;
+	    # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is
+	    # missing.  It's unnecessary anyway since dlopen lives in libc.
+	    ;;
 	  *-*-darwin*)
-	  ;;
+	    ;;
 	  *)
             AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
-	  ;;
+	    ;;
       esac
    fi
 fi


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


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