This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Not all IRIX 6 boxes have 64bit libraries
- To: java-patches@sourceware.cygnus.com
- Subject: Not all IRIX 6 boxes have 64bit libraries
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 19 Jul 1999 06:47:06 -0300
We'd better skip building -mabi=64 multilibs when 64bit standard
libraries are missing, just like gcc does. Here's a patch that has
been installed in gcc a couple of months ago:
Index: ChangeLog
from Alexandre Oliva <oliva@dcc.unicamp.br>
* config-ml.in (mips*-*-*, mabi=64): Auto-detect lack of 64bit
libraries.
Index: config-ml.in
===================================================================
RCS file: /cvs/java/libgcj/config-ml.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 config-ml.in
--- config-ml.in 1999/04/07 14:52:30 1.1.1.1
+++ config-ml.in 1999/07/19 09:42:04
@@ -362,6 +362,28 @@
esac
done
fi
+ case " $multidirs " in
+ *" mabi=64 "*)
+ # We will not be able to create libraries with -mabi=64 if
+ # we cannot even link a trivial program. It usually
+ # indicates the 64bit libraries are missing.
+ if echo 'main() {}' > conftest.c &&
+ ${CC-gcc} -mabi=64 conftest.c -o conftest; then
+ :
+ else
+ echo Could not link program with -mabi=64, disabling it.
+ old_multidirs="${multidirs}"
+ multidirs=""
+ for x in ${old_multidirs}; do
+ case "$x" in
+ *mabi=64* ) : ;;
+ *) multidirs="${multidirs} ${x}" ;;
+ esac
+ done
+ fi
+ rm -f conftest.c conftest
+ ;;
+ esac
;;
powerpc*-*-* | rs6000*-*-*)
if [ x$enable_softfloat = xno ]
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them