[gccgo] Use -static-libstdc++ when building the Go compiler

Joseph S. Myers joseph@codesourcery.com
Sat Nov 21 00:54:00 GMT 2009


On Fri, 20 Nov 2009, Ian Lance Taylor wrote:

> When bootstrapping gccgo, the Go compiler winds up being built with
> the current version of libstdc++.  That makes it a pain to run if the
> current version of libstdc++ is newer than the system version.
> Fortunately I introduced the -static-libstdc++ option to avoid just
> this issue for the build-with-cxx branch.  This patch uses the option,
> if it is supported, when building the Go compiler.  Committed to gccgo
> branch.

This should not override --with-host-libstdcxx (and my previous comments 
<http://gcc.gnu.org/ml/gcc-patches/2009-06/msg01719.html> that C++ code 
should be linked with $(CC) in non-bootstrapped builds with 
--with-host-libstdcxx apply equally here as they do to building the whole 
compiler as C++ - i.e. things to get right before merging the Go compiler 
to trunk, or building the whole compiler as C++ by default).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list