title: g++ trying (failing) to link statically to libstdc++ for shared object
body: <p>I'm trying to create a shared object using a number of .O files created with the -fPIC command.  When I run g++ with the -shared argument it appears to be trying to statically link to the libstdc++.a library, which of course fails.  I'm trying to figure out why it's automatically trying to link statically when I'm not using the -static-stdc++ argument.</p>
  
  <p>when I try creating the shared object I get the error ...libstdc++.a(ios) relocate R_x86_64_325 against 'vtable for std::ios_base': cannot be used when making a shared object</p>
  
  <p>I ran G++ with the -V argument and received and can see LD receives the argument -lstdc++.</p>