PR 9812
[binutils-gdb.git] / gold / options.cc
index 6b2b5cf8f7c331530f896fd18353b2562a04bb38..ff9bd41c195904d8245ec40a1805bc64cd3e864f 100644 (file)
@@ -696,6 +696,9 @@ General_options::finalize()
   if (this->strip_debug_non_line())
     this->set_strip_debug_gdb(true);
 
+  if (this->Bshareable())
+    this->set_shared(true);
+
   // If the user specifies both -s and -r, convert the -s to -S.
   // -r requires us to keep externally visible symbols!
   if (this->strip_all() && this->relocatable())