aboutsummaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-02-20 01:12:28 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-02-20 01:12:28 +0000
commitf4ff34a3047cd5dafebeeb733559c5dc0dba2339 (patch)
treef009823eb831e478104fcc5fb416f4051ee3d771 /ltconfig
parent8e23b15d1cd68862503d11996be661999b8584c0 (diff)
downloadgdb-f4ff34a3047cd5dafebeeb733559c5dc0dba2339.zip
gdb-f4ff34a3047cd5dafebeeb733559c5dc0dba2339.tar.gz
gdb-f4ff34a3047cd5dafebeeb733559c5dc0dba2339.tar.bz2
* 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.
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig14
1 files changed, 11 insertions, 3 deletions
diff --git a/ltconfig b/ltconfig
index 5ccefe0..5be6089 100755
--- a/ltconfig
+++ b/ltconfig
@@ -1186,6 +1186,11 @@ hpux9* | hpux10* | hpux11*)
;;
irix5* | irix6*)
+ if test "$with_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ if
version_type=irix
need_lib_prefix=no
need_version=no
@@ -1197,9 +1202,12 @@ irix5* | irix6*)
;;
*)
case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
*) libsuff= shlibsuff= libmagic=never-match;;
esac
;;