Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 1999 20:04:02 -0800 (PST)
From:      Joseph Koshy <jkoshy>
To:        Sheldon Hearn <axl@iafrica.com>
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: ports/audio/mpg123/patches patch-aa 
Message-ID:  <199901190404.UAA06099@hub.freebsd.org>
In-Reply-To: Your message of "Mon, 18 Jan 1999 12:56:23 %2B0200." <4867.916656983@axl.noc.iafrica.com> 

next in thread | previous in thread | raw e-mail | index | archive | help


> This means that stronger otpimization than I may want will be imposed on
> me. If you insist on keeping -O2 in place as a default, may I suggest
> you do it as follows:
> 
> CFLAGS+='-Wall -O2 [...] $(CFLAGS)'
> 
> This means that my '-O' will override the default -O2.

Done.

By moving CFLAGS to the end we can handle this simple case, but the
approach doesn't go very far.  You can't always turn off an option that
came earlier on the command line.  Some ports really need the best
optimization that the compiler can offer (-O6) and and the default
optimization in /etc/make.conf will probably be too low for these.
Cranking up the -O levels in the /etc/make.conf will however cause the
system to display ``interesting'' symptoms after the next `make world'.

For these and other reasons IMHO the scope of `customizability' via CFLAGS
and its ilk shouldn't be too large. Folks should be required to edit
Makefiles if they want sophisticated stuff :).

Koshy
<jkoshy@freebsd.org>	


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901190404.UAA06099>