Subject: Re: Where is CFLAGS set?
To: None <tech-pkg@NetBSD.org>
From: Roland Illig <firstname.lastname@example.org>
Date: 04/10/2005 05:14:44
Geert Hendrickx wrote:
> 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
> No it is not. This way your CFLAGS+=-Ox always overrides the default.
Can you prove that for every program using CFLAGS on every platform? If
not, it is better not to have to rely on the order of arguments.