[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best means to override CXXFLAGS locally

From: Sylvestre Ledru
Subject: Re: Best means to override CXXFLAGS locally
Date: Mon, 23 Oct 2006 12:43:48 +0200

Hello Ralf & Akim,

Le dimanche 22 octobre 2006 à 13:46 +0200, Ralf Wildenhues a écrit :
> Hello Akim,
> * Akim Demaille wrote on Sun, Oct 22, 2006 at 01:10:02PM CEST:
> > >What would be the cleanest means to handle this exception?
> > 
> > Here is what I did:
> I think it's much better to do the munging in  Store the
> CFLAGS set by the user and/or AC_PROG_CC in AM_CFLAGS, and override
> CFLAGS.  Depending upon whether the changed flags settings apply to only
> a few, non-portability-problematic files in your project, the rest of
> the configure tests should run with the flags set by the user, and you
> should only override at the end, or the converse.
I agree that we should not touch the user's flags but I don't see how you can 
say only for one file :
change the -02 flag to -O0 but keep all the other flags.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]