From: Tim Deegan Subject: Re: [PATCH] xen: Deal with stdarg.h and -nostdinc Date: Fri, 27 May 2011 14:16:00 +0100 Message-ID: <20110527131600.GA5098@whitby.uk.xensource.com> References: <4DDF735F.9020706@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4DDF735F.9020706@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: Ian Jackson , "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org At 11:48 +0200 on 27 May (1306496895), Christoph Egger wrote: > On 05/27/11 11:21, Keir Fraser wrote: > >Secondly, I wonder whether *BSD would be happier if we did not include > >-nostdinc on the command line? See arch/x86/Rules.mk where SunOS is already > >special cased. I don't know whether that would work for BSD too. > > It works for NetBSD at least. > > >Finally, rather than referencing a hardcoded /usr/include path or including > >gcc intrinsics in xen/stdarg.h, would *BSD prefer a -isystem command-line > >option to include the gcc headers in the search path? Then we could perhaps > >even get rid of xen/stdarg.h completely. > > NetBSD is about to add clang/llvm support. If -isystem works for both > gcc and clang then this should be fine. Building Xen with clang I had to remove the -nostdinc because I couldn't find a sensible way of automatically finding the clang include paths. It may be that I just wasn't looking in the right place. Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)