Re: Override default CXXFLAGS

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

 



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 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. "

That's only half of the story ("-O2 -g is gcc-specific").

CXXFLAGS needs to stay overridable from the configure command-line (configure CXXFLAGS="..." and from the envirionment
(CXXFLAGS="..." configure).

Ralf

_______________________________________________
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