[Bug bootstrap/49829] [4.7 Regression] --disable-static --enable-shared regression: cannot find -lstdc++

bonzini at gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 3 13:07:00 GMT 2012


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.



More information about the Gcc-bugs mailing list