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

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

 



> 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
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux