This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix libjava x86-64 multilib
- From: Bo Thorsen <bo at sonofthor dot dk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 20:44:41 +0200
- Subject: Fix libjava x86-64 multilib
Hi all,
This fixes the multilib error I've been getting. Bootstrapped on x86-64
(finally!). Can I commit it?
2002-10-01 Bo Thorsen <bo@suse.de>
* configure: rebuilt after toplevel libtool.m4 fix.
2002-10-01 Bo Thorsen <bo@suse.de>
* libtool.m4: Fix x86-64 multilib
Index: libtool.m4
===================================================================
RCS file: /cvs/gcc/gcc/libtool.m4,v
retrieving revision 1.9
diff -u -r1.9 libtool.m4
--- libtool.m4 14 Aug 2002 02:39:52 -0000 1.9
+++ libtool.m4 1 Oct 2002 18:39:35 -0000
@@ -175,6 +175,19 @@
rm -rf conftest*
;;
+x86_64*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case "`/usr/bin/file conftest.o`" in
+ *32-bit*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
@@ -622,7 +635,7 @@
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
+ alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | x86_64 )
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
--
Bo Thorsen | Praestevejen 4
Senior Software Engineer | 5290 Marslev
Klarälvdalens Datakonsult | Denmark