Ralf Wildenhues writes: > This will not work with non-GCC compilers that print something other > than "unrecognized option" upon such an option. I think you should at > least check that you can form a command with the flag that exits zero, > that way you may still have warnings during Stage 1 but at least not a > hard build failure. > > Alternatively, you could check whether $GXX is yes, to be sure to only > accept the flag for GCC. Good point. I think testing $GXX is fine. How about this patch? Ian 2010-11-03 Ian Lance Taylor * configure.ac: Set and substitute STATIC_LIBSTDCXX. * Makefile.in (STATIC_LIBSTDCXX): New variable. * configure: Rebuild.