autoconf
[Top][All Lists]
Advanced

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

Re: Override default CXXFLAGS


From: Ralf Corsepius
Subject: Re: Override default CXXFLAGS
Date: Sat, 22 Jan 2011 11:16:34 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]