Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: (PR#2387) Standard config doesn't use -O2
Home

[Freeciv-Dev] Re: (PR#2387) Standard config doesn't use -O2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2387) Standard config doesn't use -O2
From: "Gregory Berkolaiko via RT" <rt@xxxxxxxxxxxxxx>
Date: Sun, 24 Nov 2002 08:02:14 -0800
Reply-to: rt@xxxxxxxxxxxxxx

BTW, while people are at it, is it also possible to provide 
--disable-optim option.  It sometimes realy makes my life difficult when 
trying to debug things?

G.


On Sat, 23 Nov 2002, Raimar Falke via RT wrote:

> The default configure won't use -O2 in the CFLAGS. It was caused by
> this change to configure.in:
> 
> revision 1.194
> date: 2002/07/19 17:59:11;  author: per;  state: Exp;  lines: +6 -5
> Clean up autoconf handling of --enable-debug. Defaults not changed.
> 
> While I don't understand why this change broke it I have attached a
> patch which fixes the current situation. The patch moves the FC_DEBUG
> macro down after the AC_PROG_CC test. This test looks if any CFLAGS
> are set if so it won't change anything. If CFLAGS is not set it will
> append "-Wall" and "-O2" if gcc is found. So if we run FC_DEBUG before
> AC_PROG_CC AC_PROG_CC won't add the "-O2". While cflags_set is used in
> the FC_DEBUG macro is isn't set anywhere.
> 
>       Raimar
> 
> 




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