This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] BZ#15711: Build syscall.h with -ffreestanding.


On 07/10/2013 10:30 AM, Carlos O'Donell wrote:
> On 07/10/2013 03:32 AM, Andreas Schwab wrote:
>> "Carlos O'Donell" <carlos@redhat.com> writes:
>>
>>> The loop is caused by a auto-generated prerequisite between
>>> /usr/include/stdc-predef.h and $BUILD/misc/bits/syscall.d.
>>
>> Why isn't the compiler seeing include/stdc-predef.h first?

The only headers included are $(sysincludes).

So the only headers the compiler searches are:

#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/4.7.2/include
 /home/carlos/install-linux/include
End of search list.

This means the build never sees the internal 
include/stdc-predef.h.

Is there any reason to want to add more internal include
paths as opposed to just using -ffreestanding.

The latter makes the most sense to me when generating
a header that effectively has no external dependencies.

Is that sufficient justification to use -ffreestanding?

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]