automake
[Top][All Lists]
Advanced

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

Re: Disabling optimization


From: Ralf Corsepius
Subject: Re: Disabling optimization
Date: Thu, 18 Nov 2004 13:42:39 +0100

On Thu, 2004-11-18 at 11:56 +0000, Andrew Suffield wrote:
> On Thu, Nov 18, 2004 at 12:41:37PM +0100, Ralf Corsepius wrote:
> > On Thu, 2004-11-18 at 11:55 +0100, Andreas Schwab wrote:
> > > Stepan Kasal <address@hidden> writes:
> > > 
> > > > out of curiosity, what would be wrong with the following?
> > > >
> > > >         if test -n "${CXXFLAGS}"; then
> > > >           CXXFLAGS="-g"
> > > >         fi
> > > >         AC_PROG_CXX
> > > 
> > > I think you got it backwards.  This makes it impossible to override
> > > CXXFLAGS.
> > 
> > Isn't the snippet below sufficient?
> > CXXFLAGS=${CXXFLAGS--g}
> > AC_PROG_CXX
> 
> What you're all trying to say is this:
> 
> CXXFLAGS="-g -O0 ${CXXFLAGS}"
Nope, this prevents overriding CXXFLAGS from the environment.

Ralf






reply via email to

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