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
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to