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@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to