This is the mail archive of the
mailing list for the GCC project.
Re: PATCH RFA: Build system: Check for -static-libstdc++
* Ian Lance Taylor wrote on Wed, Nov 03, 2010 at 03:23:05PM CET:
> 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?
This looks OK to me from a correctness POV, but I cannot approve nor do
I intend a statement regarding the other objections.
> 2010-11-03 Ian Lance Taylor <firstname.lastname@example.org>
> * configure.ac: Set and substitute STATIC_LIBSTDCXX.
> * Makefile.in (STATIC_LIBSTDCXX): New variable.
> * configure: Rebuild.