[Top][All Lists]

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

Re: Best means to override CXXFLAGS locally

From: Ralf Wildenhues
Subject: Re: Best means to override CXXFLAGS locally
Date: Sun, 22 Oct 2006 13:46:04 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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.

Much cleaner, involves much less changes.  If you have something that
works nicely and is reasonably generally useful, post a summary, or
even better, a FAQ addition to the manual.  ;-)


reply via email to

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