Comments on pmake diffs for building on Linux
David O'Brien
obrien at freebsd.org
Tue Mar 4 18:42:57 UTC 2008
On Tue, Mar 04, 2008 at 11:04:07AM -0700, M. Warner Losh wrote:
> In message: <20080304175810.GE90931 at dragon.NUXI.org>
> "David O'Brien" <obrien at 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 at 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"
More information about the freebsd-hackers
mailing list