automake
[Top][All Lists]
Advanced

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

Re: AM_CFLAGS no longer in the manual


From: NightStrike
Subject: Re: AM_CFLAGS no longer in the manual
Date: Sun, 9 Dec 2012 11:59:20 -1000

On Sun, Dec 9, 2012 at 10:44 AM, Diego Elio Pettenò
<address@hidden> wrote:
> On 09/12/2012 17:32, NightStrike wrote:
>> It's not more fully documented elsewhere, though.  AM_CPPFLAGS right
>> about it is, however, fully documented right in this section.  This
>> should be fixed, since nowhere does the manual say that AM_CFLAGS is
>> "-g -O2" by default.
>
> Is it? I was confident that AM_CFLAGS is unset by default, but CFLAGS
> (from autoconf) is "-g -O2" by default.
>
> And no you shouldn't change CFLAGS in configure.ac, please. That's an
> user-assignable variable, distributions cry every time that we have to
> patch a CFLAGS="$something" in configure.ac. Especially when that's to
> set/unset -O and -g flags depending on a debug/release build (hint:
> distributions want debug information with optimized builds as well!).

Obviously I'm wrong about the default.  All the more reason that it
should be documented what the default is :)



reply via email to

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