[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kernel build still pulls in host includes even with -nostdinc
From: |
Colin Watson |
Subject: |
Re: kernel build still pulls in host includes even with -nostdinc |
Date: |
Sun, 19 Feb 2017 17:27:17 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sun, Feb 19, 2017 at 09:02:50AM +0000, Vladimir 'phcoder' Serbinenko wrote:
> On Sun, Feb 19, 2017, 07:41 Andrei Borzenkov <address@hidden> wrote:
> > Could someone comment on this?
> >
> > gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_PCBIOS=1
> > -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem
> > /usr/lib/gcc/x86_64-linux-gnu/5/include
> >
> > So we do have definitions from /usr/lib/gcc/x86_64-linux-gnu/5/include
> > used.
> >
> > How harmless/harmful is it?
>
> We use it for va_args definition and related macros. I don't think we want
> to reimplement those
Yeah, I'd say that that include directory is really part of the compiler
rather than part of the host system as such.
--
Colin Watson address@hidden