aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/irix.em
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emultempl/irix.em')
-rw-r--r--ld/emultempl/irix.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/irix.em b/ld/emultempl/irix.em
index 2969f9b..963dadb 100644
--- a/ld/emultempl/irix.em
+++ b/ld/emultempl/irix.em
@@ -32,7 +32,7 @@ fragment <<EOF
static void
irix_after_open (void)
{
- if (link_info.shared && command_line.soname == 0)
+ if (bfd_link_dll (&link_info) && command_line.soname == 0)
command_line.soname
= (char *) lbasename (bfd_get_filename (link_info.output_bfd));