[Top][All Lists]

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

Re: changing the default compilers for autoconf

From: Thomas Dickey
Subject: Re: changing the default compilers for autoconf
Date: Mon, 17 Sep 2007 08:23:08 -0400 (EDT)

On Mon, 17 Sep 2007, Eric Blake wrote:

If autoconf detects that you are using gcc, but did not specify CFLAGS,
then it defaults CFLAGS to '-g -O2'.  But for other compilers, autoconf
doesn't generally know enough about your compiler to assume any set of
default flags.  So I don't know what you are worried about.  Beyond that,

It's more than that.  Setting the flags to -g is a policy decision made
in the mid-90's based on the claim that setting the optimization flag
in any compiler other than gcc would expose bugs in that compiler.

(the claim of course is incorrect, but there's no point in discussing it
on this mailing list)

Thomas E. Dickey

reply via email to

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