aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/sunos.em
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-10 20:46:42 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-10 20:46:42 +0000
commitb6ef97506c6abc4cd3c84aec82b5c6c1059b7cdd (patch)
tree6c7518d89a11fa65718e78433c59879b6f48901f /ld/emultempl/sunos.em
parent90f6517da9d3ddf09648bd3bc3fca3cf13da9e5a (diff)
downloadgdb-b6ef97506c6abc4cd3c84aec82b5c6c1059b7cdd.zip
gdb-b6ef97506c6abc4cd3c84aec82b5c6c1059b7cdd.tar.gz
gdb-b6ef97506c6abc4cd3c84aec82b5c6c1059b7cdd.tar.bz2
* emultempl/sunos.em: Only look for .so files if doing a dynamic
link.
Diffstat (limited to 'ld/emultempl/sunos.em')
-rw-r--r--ld/emultempl/sunos.em3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/emultempl/sunos.em b/ld/emultempl/sunos.em
index c6c1605..9f91323 100644
--- a/ld/emultempl/sunos.em
+++ b/ld/emultempl/sunos.em
@@ -82,7 +82,8 @@ gld${EMULATION_NAME}_before_parse()
static void
gld${EMULATION_NAME}_create_output_section_statements ()
{
- lang_for_each_input_file (gld${EMULATION_NAME}_find_so);
+ if (config.dynamic_link)
+ lang_for_each_input_file (gld${EMULATION_NAME}_find_so);
}
/* Search the directory for a .so file for each library search. */