[Top][All Lists]

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

Re: How to remove "-O2" on Makefile generated by autoconf/make

From: Vincent Torri
Subject: Re: How to remove "-O2" on Makefile generated by autoconf/make
Date: Tue, 29 Nov 2005 22:03:40 +0000 (UTC)

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).


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

reply via email to

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