From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: Re: [PATCH] xen: Deal with stdarg.h and -nostdinc Date: Fri, 27 May 2011 10:59:35 +0200 Message-ID: <4DDF67F7.2050407@amd.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On 05/27/11 10:46, Keir Fraser wrote: > On 27/05/2011 08:55, "Christoph Egger" wrote: > >>> Not really. We are only doing the same as Linux right now. I do note that >>> they add an -isystem option to their command line, with a gcc include path >>> that they presumably dump out of gcc in some standard way. However, our >>> current approach seems to work, if it fails to work in some situation it is >>> likely to be pretty obvious (build or link failure), and we can fix it then. >> >> The cross-compiling facility in NetBSD has been further improved which >> made gcc more pendantic for this. -nostdinc is used and -isystem is >> *not* used. > > So where does NetBSD get its stdarg.h from in this case? -isystem must be *explicitely* specified now. > It's somewhat bogus to roll your own, as it contains compiler-specific intrinsics. > > -- Keir -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632