when CFLAGS is not already set, AC_PROG_CC set CFLAGS to -g -O2 (or just 
-O2 if -g is not supported). Same for CXXFLAGS and AC_PROG_CXX (cf their 
documentation in the autoconf manual).

regards

Vincent Torri

On Tue, 29 Nov 2005, David Fang wrote:

> > When I use autoconf/automake tools to generate makefile for my package, the
> > CXXFLAGS is always added "-O2" by tools, while I don't want to use for
> > debuging.
> > Is it possible to remove it from options of configure command or some other
> > ways better than removing it manually everytime on Makefile?
> 
> Hi,
> 
> I think a combination of
> 
>       AM_CXXFLAGS =
> 
> and
> 
>       configure CXXFLAGS=""
> 
> will work.
> Probably just the latter is enough.
> I believe -g and -O2 are picked up by default by autoconf when nothing is
> specified.
> 
> David Fang
> 
> 
> 
> 



_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to