aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2007-07-23 12:51:36 +0000
committerRainer Orth <ro@gcc.gnu.org>2007-07-23 12:51:36 +0000
commitde2b3a07713724618330b6bde404a32d0af811c0 (patch)
tree77f1be8d85ae17076524aa60d0cc502fb9c32ef7 /libjava
parenta05bea767716117ac703c1adfcdf660906183b65 (diff)
downloadgcc-de2b3a07713724618330b6bde404a32d0af811c0.zip
gcc-de2b3a07713724618330b6bde404a32d0af811c0.tar.gz
gcc-de2b3a07713724618330b6bde404a32d0af811c0.tar.bz2
configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
* configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC. * configure: Regenerate. From-SVN: r126847
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rwxr-xr-xlibjava/configure11
-rw-r--r--libjava/configure.ac11
3 files changed, 25 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 04a38a7..eaf3b57 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
+ * configure: Regenerate.
+
2007-07-16 Rask Ingemann Lambertsen <rask@sygehus.dk>
PR target/32340
diff --git a/libjava/configure b/libjava/configure
index 370534b..861c522 100755
--- a/libjava/configure
+++ b/libjava/configure
@@ -25149,7 +25149,14 @@ fi
# On Solaris, and maybe other architectures, the Boehm collector
# requires -ldl.
if test "$GC" = boehm; then
- echo "$as_me:$LINENO: checking for main in -ldl" >&5
+ 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}"
+ ;;
+ *)
+ echo "$as_me:$LINENO: checking for main in -ldl" >&5
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -25216,6 +25223,8 @@ if test $ac_cv_lib_dl_main = yes; then
SYSTEMSPEC="$SYSTEMSPEC -ldl"
fi
+ ;;
+ esac
fi
fi
diff --git a/libjava/configure.ac b/libjava/configure.ac
index 9a9d1fd..ddda4e8 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -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