Date: Tue, 4 Mar 2008 10:42:57 -0800 From: "David O'Brien" <obrien@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: Comments on pmake diffs for building on Linux Message-ID: <20080304184257.GA91852@dragon.NUXI.org> In-Reply-To: <20080304.110407.1655406638.imp@bsdimp.com> References: <20080303.224256.635730757.imp@bsdimp.com> <20080304175810.GE90931@dragon.NUXI.org> <20080304.110407.1655406638.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 04, 2008 at 11:04:07AM -0700, M. Warner Losh wrote: > In message: <20080304175810.GE90931@dragon.NUXI.org> > "David O'Brien" <obrien@freebsd.org> writes: > : On Mon, Mar 03, 2008 at 10:42:56PM -0700, M. Warner Losh wrote: > : > #include "arch.h" > : > +#include "config.h" > : > : Are you able to use "CFLAGS+= -include config.h" instead? > : If so, that would mean less .[ch] changes. There is also -imacros <file> Exactly like -include, except that any output produced by scanning file is thrown away. Macros it defines remain defined. This allows you to acquire all the macros from a header without also processing its declarations. that may be useful if you run into other problems. http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Preprocessor-Options.html#Preprocessor-Options lists other options that may be used for tricks in building. -- -- David (obrien@FreeBSD.org) Q: Because it reverses the logical flow of conversation. A: Why is top-posting (putting a reply at the top of the message) frowned upon? Let's not play "Jeopardy-style quoting"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080304184257.GA91852>