Date: Tue, 7 Jun 2011 14:48:52 -0400 From: David Schultz <das@FreeBSD.ORG> To: Arnaud Lacombe <lacombar@gmail.com> Cc: Luigi Rizzo <rizzo@iet.unipi.it>, current@FreeBSD.ORG Subject: Re: warning: 'inline' is not at beginning of declaration ? Message-ID: <20110607184852.GA14956@zim.MIT.EDU> In-Reply-To: <BANLkTimhT33nZda11g5q800183waX5KdPQ@mail.gmail.com> References: <20110601165429.GA16569@onelab2.iet.unipi.it> <BANLkTimhT33nZda11g5q800183waX5KdPQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 02, 2011, Arnaud Lacombe wrote: > > On a related topic, do we have any mechanism to provide > > per-subdir or per-file CFLAGS during kernel builds ? > > > I'd say no as the kernel per-se makes no use of <bsd.subdir.mk>, ooth, > some modules do. > > > I tried to put a Makefile.inc in a subdirectory but it > > did not help. > > > understandable, as Makefile.inc is sourced by <bsd.init.mk>, which is > only used by `sys/conf/kmod.mk'. There's a hack to do per-file CFLAGS in libc. We use this to compile the vendor sources gdtoa_*.c with warnings disabled, since the vendor disavows gcc's stylistic complaints. See src/lib/libc/Makefile.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110607184852.GA14956>