aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index 1396524..8c86b9e 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -153,7 +153,8 @@ queue_middle_tasks(const General_options& options,
Workqueue* workqueue)
{
// Now we have seen all the input files.
- const bool doing_static_link = !input_objects->any_dynamic();
+ const bool doing_static_link = (!input_objects->any_dynamic()
+ && !parameters->output_is_shared());
set_parameters_doing_static_link(doing_static_link);
if (!doing_static_link && options.is_static())
{