The -static-libstdc++ option was added to g++ in the gcc 4.5 release. The Go frontend wants to use it when linking, so that the Go frontend is independent of the installed libstdc++.so. This is particularly useful when bootstrapping, and is generally desirable as it permits moving the compiler around. This patch to gcc/configure.ac checks whether $(CXX) supports -static-libstdc++, and sets a variable in Makefile.in. This is not used yet, but it will be used by the Go frontend when it goes in. Bootstrapped on x86_64-unknown-linux-gnu. OK for mainline? Ian 2010-11-02 Ian Lance Taylor * configure.ac: Set and substitute STATIC_LIBSTDCXX. * Makefile.in (STATIC_LIBSTDCXX): New variable. * configure: Rebuild.