Date: Tue, 29 May 2001 04:02:50 -0700 From: Kris Kennaway <kris@obsecurity.org> To: "David E. O'Brien" <obrien@FreeBSD.org> Cc: arch@FreeBSD.org Subject: Overriding compiler flags (Re: cvs commit: src/contrib/gcc.295 gcc.c) Message-ID: <20010529040250.A81586@xor.obsecurity.org> In-Reply-To: <200105290954.f4T9skF86521@freefall.freebsd.org>; from obrien@FreeBSD.org on Tue, May 29, 2001 at 02:54:46AM -0700 References: <200105290954.f4T9skF86521@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, May 29, 2001 at 02:54:46AM -0700, David E. O'Brien wrote:
> obrien 2001/05/29 02:54:46 PDT
>
> Modified files:
> contrib/gcc.295 gcc.c
> Log:
> Support the environmental var "GCC_OPTIONS". Which can hold a set of
> default options for GCC. These options are interpreted first and can be
> overwritten by explicit command line parameters. This provides one way of
> adding [temporary] options to your world build w/o editing /etc/make.conf.
Hmm. We now have a number of ways of achieving this (some of these
only work in some contexts):
Defining CFLAGS with ?= instead of = in /etc/make.conf
COPTS in <bsd.prog.mk>
CWARNFLAGS in <bsd.sys.mk> (included from <bsd.{kmod,lib,prog}.mk>)
DEBUG_FLAGS in <bsd.{lib,prog}.mk>
The latter three obviously don't cover general code, but the plethora
of options is starting to get ugly.
Kris
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE7E4HZWry0BWjoQKURAnIQAKDqrc9kJy7dKWGt9SMCP9fHIoxapQCffkGp
H3q41MvVsRweHdSy/zc6xjU=
=8vBq
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010529040250.A81586>
