This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Cheers,
Ralf

> 2010-11-03  Ian Lance Taylor  <iant@google.com>
> 
> 	* configure.ac: Set and substitute STATIC_LIBSTDCXX.
> 	* Makefile.in (STATIC_LIBSTDCXX): New variable.
> 	* configure: Rebuild.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]