diff options
author | Daniel Jacobowitz <dan@debian.org> | 2003-12-14 20:28:56 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2003-12-14 20:28:56 +0000 |
commit | ce05fcf529ba4d8eee9e20ad733a0e0348d0a176 (patch) | |
tree | 94075fe057415326e06a447e0f40da16c8ad19ca /libtool.m4 | |
parent | eaeffedefaf5d7728c092506e48092ec09234d6b (diff) | |
download | gdb-ce05fcf529ba4d8eee9e20ad733a0e0348d0a176.tar.gz |
Merge drow-cplus-branch to:
cvs rtag -D 2003-12-14 00:00:00 UTC drow-cplus-merge-20031214 gdb+dejagnu
Diffstat (limited to 'libtool.m4')
-rw-r--r-- | libtool.m4 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libtool.m4 b/libtool.m4 index 3f452bcba28..d2e36088dee 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -144,6 +144,19 @@ case $host in # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" @@ -155,6 +168,7 @@ case $host in LD="${LD-ld} -64" ;; esac + fi fi rm -rf conftest* ;; @@ -622,7 +636,7 @@ irix5* | irix6*) # This must be Linux ELF. linux-gnu*) case $host_cpu in - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) + alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM |