From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 4 18:42:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C73F5106566B for ; Tue, 4 Mar 2008 18:42:57 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (trang.nuxi.org [74.95.12.85]) by mx1.freebsd.org (Postfix) with ESMTP id AC2F18FC2A for ; Tue, 4 Mar 2008 18:42:57 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (obrien@localhost [127.0.0.1]) by dragon.nuxi.org (8.14.1/8.14.1) with ESMTP id m24IgvnI092749 for ; Tue, 4 Mar 2008 10:42:57 -0800 (PST) (envelope-from obrien@dragon.nuxi.org) Received: (from obrien@localhost) by dragon.nuxi.org (8.14.2/8.14.1/Submit) id m24IgvT6092748 for freebsd-hackers@freebsd.org; Tue, 4 Mar 2008 10:42:57 -0800 (PST) (envelope-from obrien) Date: Tue, 4 Mar 2008 10:42:57 -0800 From: "David O'Brien" To: freebsd-hackers@freebsd.org Message-ID: <20080304184257.GA91852@dragon.NUXI.org> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20080303.224256.635730757.imp@bsdimp.com> <20080304175810.GE90931@dragon.NUXI.org> <20080304.110407.1655406638.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080304.110407.1655406638.imp@bsdimp.com> X-Operating-System: FreeBSD 8.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: Comments on pmake diffs for building on Linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 18:42:57 -0000 On Tue, Mar 04, 2008 at 11:04:07AM -0700, M. Warner Losh wrote: > In message: <20080304175810.GE90931@dragon.NUXI.org> > "David O'Brien" 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 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"