aboutsummaryrefslogtreecommitdiff
path: root/libtool.m4
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-02-20 01:12:47 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2003-02-20 01:12:47 +0000
commitd8b405f13293a3d672ba31b40743e26dcaeffaa7 (patch)
tree28b39fc5f7601c5aedfa11392ae7c354fd1baa0d /libtool.m4
parent8d33276f770082102d1151e06334aae96a3be817 (diff)
libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld. * ltconfig: Handle it. * ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of auto-detecting it. From-SVN: r63149
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 99149ffe140..ff738c7d9e8 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*
;;