automake
[Top][All Lists]
Advanced

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

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


From: David Fang
Subject: Re: How to remove "-O2" on Makefile generated by autoconf/make
Date: Tue, 29 Nov 2005 14:58:27 -0500 (EST)

> 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]