Subject: Re: Where is CFLAGS set?
To: Georg Schwarz <firstname.lastname@example.org>
From: Idar Tollefsen <email@example.com>
Date: 04/09/2005 02:54:38
Georg Schwarz wrote:
>>On a NetBSD box, that is set in /usr/share/mk/sys.mk
>>I have had problems building some software on a Linux system because
>>the optimization was not defined.
> Thanks. Setting DBG= in mk.conf seems to give me what I want.
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 :-)
And why "CFLAGS+=" in mk.conf instead of just "CFLAGS="? You told it to
_add_ your flags.