Override default CXXFLAGS

2011-01-21 Thread Sergio Belkin
Hi, Let's say we'd want to compile with CXXFLAGS=-O3. The problem is that is set in some way as -O2. I've overriden CXXFLAGS on configura.ac setting: CXXFLAGS="-O3 ${CXXFLAGS}" But I wonder if that is the proper way of do it! I'm using Fedora 14. Any idea? Thanks in advance! -- -- Sergio Be

Re: Override default CXXFLAGS

2011-01-21 Thread Sergio Belkin
I answer myself: RTMF :) "If using the GNU C compiler, set shell variable GCC to ‘yes’. If output variable CFLAGS was not already set, set it to -g -O2 for the GNU C compiler (-O2 on systems where GCC does not accept -g), or -g for other compilers. If your package does not like this default, then