[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] Add "-nostdinc" to gcc when HAVE_LIBC is not enabled

On Tue, Dec 12, 2017 at 10:55:31AM +0100, Samuel Thibault wrote:
> Huang Shijie, on mar. 12 déc. 2017 09:50:20 +0000, wrote:
> >     I am trying to add the DTC to the mini-os by coping its code to minios.
> >
> >     I added the "-nostdinc" to gcc when the HAVE_LIBC
> >     is not enabled, and I copied the headers from the FreeBSD code.
> >
> >     (Of course, I copied many headers from the FreeBSD code, such as 
> > stddef.h, stdarg.h..)
> >
> >     It is a big patch for the mini-os. So is this a good idea, or a bad 
> > idea?
> These should be provided by the compiler, not libc. You need to add the
> compiler header search path along -nostdinc.
But the gcc compiler header is GPL v2, so I chose to use the FreeBSD headers.

Huang Shijie
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

Minios-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.