From: "Jan Beulich" Subject: Re: stdbool.h -nostdinc XSA-55 trouble Date: Mon, 12 Aug 2013 08:31:29 +0100 Message-ID: <5208AB7102000078000EB054@nat28.tlf.novell.com> References: <20130808114945.GG22372@quark> <5203B51402000078000EA534@nat28.tlf.novell.com> <20130808151835.GB870@quark> <5203D59E02000078000EA634@nat28.tlf.novell.com> <20130808154714.GD870@quark> <5204ABEA02000078000EA8CA@nat28.tlf.novell.com> <20130811164121.GE933@quark> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130811164121.GE933@quark> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Patrick Welche Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 11.08.13 at 18:41, Patrick Welche wrote: > On Fri, Aug 09, 2013 at 07:44:26AM +0100, Jan Beulich wrote: >> >>> On 08.08.13 at 17:47, Patrick Welche wrote: >> > On Thu, Aug 08, 2013 at 04:30:06PM +0100, Jan Beulich wrote: >> >> No, according to my checking, the --prefix configure option >> >> listed does not correlate with the directory where the header >> >> is found. >> > >> > Yes - I think our emails crossed... >> > >> > The underlying problem is: >> > >> > Linux: /usr/lib/gcc/i?86-linux-gnu/n.m/include/stdbool.h >> > NetBSD: /usr/include/stdbool.h >> >> So then my original recommendation holds: Extend the Solaris >> workaround to NetBSD, but at the same time generalize it by >> moving it from xen/arch/*/Rules.mk to xen/Rules.mk. > > So something like the attached would do the trick... > (I had a successful "make xen" with this on -head) Yes, something like this. >+ifeq ($(XEN_OS),SunOS) >+else ifeq ($(XEN_OS),NetBSD) >+else >+CFLAGS-$(gcc) += -nostdinc >+endif This may be better expressed with $(filter-out ...). >--- a/xen/arch/x86/Rules.mk >+++ b/xen/arch/x86/Rules.mk The "-iwithprefix include" should likely be moved to the common Rules.mk too (and then also be removed from the ARM variant), as it is tightly connected with the -nostdinc. Jan