This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Disabling optimization
- From: Andre Caldas <andre at ba-z dot co dot jp>
- To: automake at gnu dot org
- Date: Thu, 18 Nov 2004 09:58:24 +0900
- Subject: Re: Disabling optimization
- Organization: Ba-Z Communication
- References: <1c1ef760411171548675fa77b@mail.gmail.com>
How do I disable the "-O2" flag in the most portable way possible?
I am just learning, I am no authority. But, I would do it at configure time:
'CXXFLAGS=-O0' 'CFLAGS=-O0'
If you have some *file* that needs some specific flag, you could set it
in your Makefile.am. I think it would be something like that (not sure):
execname_SOURCES = cannot_opt.cpp cannot_opt.h can_opt.cpp can_opt.h
cannot_opt_o_CXXFLAGS = -O0
Andre Caldas.