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 | sstream.tcc (overflow): According to 27.7.1.3, p5, actual output is performed... (diff) | |
download | gcc-11856278b8c4f85d2d084d4b6f51f9ef906e8f51.tar.gz gcc-11856278b8c4f85d2d084d4b6f51f9ef906e8f51.tar.bz2 gcc-11856278b8c4f85d2d084d4b6f51f9ef906e8f51.tar.xz |
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
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 | |||
144 | # Find out which ABI we are using. | 144 | # Find out which ABI we are using. |
145 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | 145 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
146 | if AC_TRY_EVAL(ac_compile); then | 146 | if AC_TRY_EVAL(ac_compile); then |
147 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
148 | case `/usr/bin/file conftest.$ac_objext` in | ||
149 | *32-bit*) | ||
150 | LD="${LD-ld} -melf32bsmip" | ||
151 | ;; | ||
152 | *N32*) | ||
153 | LD="${LD-ld} -melf32bmipn32" | ||
154 | ;; | ||
155 | *64-bit*) | ||
156 | LD="${LD-ld} -melf64bmip" | ||
157 | ;; | ||
158 | esac | ||
159 | else | ||
147 | case `/usr/bin/file conftest.$ac_objext` in | 160 | case `/usr/bin/file conftest.$ac_objext` in |
148 | *32-bit*) | 161 | *32-bit*) |
149 | LD="${LD-ld} -32" | 162 | LD="${LD-ld} -32" |
@@ -155,6 +168,7 @@ case $host in | |||
155 | LD="${LD-ld} -64" | 168 | LD="${LD-ld} -64" |
156 | ;; | 169 | ;; |
157 | esac | 170 | esac |
171 | fi | ||
158 | fi | 172 | fi |
159 | rm -rf conftest* | 173 | rm -rf conftest* |
160 | ;; | 174 | ;; |