public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libjava, build] Don't link libgcj with libdl on IRIX
@ 2011-02-02 13:57 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2011-02-02 13:57 UTC (permalink / raw)
  To: gcc-patches; +Cc: java-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-02 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 13:57 [libjava, build] Don't link libgcj with libdl on IRIX Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).