Re: Override default CXXFLAGS

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

 



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
it is acceptable to insert the line ‘: ${CFLAGS=""}’ after AC_INIT and
before AC_PROG_CC to select an empty default instead. "

http://www.gnu.org/software/hello/manual/autoconf/C-Compiler.html

HTH

2011/1/21 Sergio Belkin <sebelk@xxxxxxxxx>:
> 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 Belkin  http://www.sergiobelkin.com
> Watch More TV http://sebelk.blogspot.com
> LPIC-2 Certified
>



-- 
--
Sergio Belkin  http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified

_______________________________________________
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