http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49829
--- Comment #4 from Paolo Bonzini <bonzini at gnu dot org> 2012-01-03 13:06:50 UTC --- You can just set enable_static=no early in libstdc++-v3/configure.ac. It will still install libstdc++-v3.a, which is a bit ugly, but that's quite hard to achieve due to libtool. One alternative is to build a convenience library (always static) for libstdc++. Then you build the shared library from it, and link gcc to the convenience library.