Subject: Re: Where is CFLAGS set?
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 04/09/2005 15:56:16
On Sat, Apr 09, 2005 at 03:32:22PM +0200, Georg Schwarz wrote:
> > From the GCC manual:
> > "If you use multiple -O options, with or without level numbers, the last
> > such option is the one that is effective."
> >
> > So if your CFLAGS were '-O2 -m486 -O3', -O3 would be used, meaning that
> > you had what you wanted all along :-)
>
> I know. Nevertheless it is better not to have to rely on the order of
> arguments.
No it is not. This way your CFLAGS+=-Ox always overrides the default.
GH
--
:wq