Re: Override default CXXFLAGS

2011-01-22 Thread Richard Ash
On Sat, 2011-01-22 at 11:16 +0100, Ralf Corsepius wrote: > On 01/22/2011 03:50 AM, Sergio Belkin wrote: > > 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

Re: Override default CXXFLAGS

2011-01-22 Thread Ralf Corsepius
On 01/22/2011 03:50 AM, Sergio Belkin wrote: 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

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

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