This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[libjava, build] Don't link libgcj with libdl on IRIX
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java-patches at gcc dot gnu dot org
- Date: Wed, 02 Feb 2011 14:57:01 +0100
- Subject: [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