Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvs2svn <>2003-02-28 21:03:32 +0300
committercvs2svn <>2003-02-28 21:03:32 +0300
commitf5354783aadcf8ccdcbaa9d54f6b0e6f90e5fb56 (patch)
tree7e5f2cd6d687eb9d86fb8983ffd70d13d200b36b /libtool.m4
parentbe35d4daa3f2525b35bab1882bf3d2685cfd28ab (diff)
This commit was manufactured by cvs2svn to create branchcagney_offbyone-20030303-branchpointcagney_offbyone-20030303-branch
'cagney_offbyone-20030303-branch'. Sprout from interps-20030202-branch 2003-01-31 21:24:33 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch' Cherrypick from master 2003-02-28 18:03:31 UTC Nathanael Nerode <neroden@gcc.gnu.org> ' * Makefile.tpl: Rearrange.': ChangeLog Makefile.def Makefile.in Makefile.tpl config.guess config.sub configure configure.in include/ChangeLog include/elf/ChangeLog include/elf/arm.h include/elf/ia64.h include/elf/ppc.h include/elf/ppc64.h include/gdb/ChangeLog include/gdb/remote-sim.h include/libiberty.h include/opcode/ChangeLog include/opcode/h8300.h libtool.m4 ltcf-cxx.sh ltcf-gcj.sh ltconfig
Diffstat (limited to 'libtool.m4')
-rw-r--r--libtool.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/libtool.m4 b/libtool.m4
index 3f452bcba..eca1da32e 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*
;;