diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-02-20 01:11:51 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2003-02-20 01:11:51 +0000 |
commit | 11856278b8c4f85d2d084d4b6f51f9ef906e8f51 (patch) | |
tree | 3b3aa12497747542aeb21e282afe7127b35304fa /libtool.m4 | |
parent | c85dca2816cc564fcdaead75be5ea07b8b2b5493 (diff) | |
download | gcc-11856278b8c4f85d2d084d4b6f51f9ef906e8f51.zip gcc-11856278b8c4f85d2d084d4b6f51f9ef906e8f51.tar.gz gcc-11856278b8c4f85d2d084d4b6f51f9ef906e8f51.tar.bz2 |
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: r63148
Diffstat (limited to 'libtool.m4')
-rw-r--r-- | libtool.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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* ;; |