Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2003 01:59:23 -0700
From:      David Schultz <dschultz@OCF.Berkeley.EDU>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        arch@FreeBSD.org
Subject:   Re: Per-source CFLAGS
Message-ID:  <20030622085923.GA62034@HAL9000.homeunix.com>
In-Reply-To: <20030622083714.GD99674@sunbay.com>
References:  <20030622005124.GA59673@HAL9000.homeunix.com> <20030622035258.GB60460@HAL9000.homeunix.com> <20030622180851.K55800@gamplex.bde.org> <20030622083714.GD99674@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 22, 2003, Ruslan Ermilov wrote:
> I still have some concerns with the proposed implementation.
> All already existing per-file knobs override the global knob,
> and I think that maybe the per-source CFLAGS should behave
> the same?  Doing it this way is more flexible; you're free
> to augment the global CFLAGS by saying
> 
> CFLAGS_foo.c=	${CFLAGS} -DFOO

Overriding the global settings is kinda the point, but FWIW, your
proposal is indeed more flexible.  But can you think of a way to
implement it that doesn't involve generating a CFLAGS_foo.c
variable for every file?



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