"ALL_BUILD_CFLAGS" and "native-compile" in Makerules

Greg Schafer gschafer@zip.com.au
Tue Dec 9 11:32:00 GMT 2003


Hi

I've noticed some weirdness attributable to the use of "ALL_BUILD_CFLAGS"
and "native-compile" in the Makerules.

Essentially, a target .c file compiled with $(native-compile) will use the
headers from the host system and not those from within the Glibc source. Is
that what is desired? I suppose it is, judging by the "native" in the name.
But I was always under the impression that the Glibc build was pretty well
self-contained in the system header stakes.

The reason I noticed this is that a "make check" will fail to compile
elf/check-textrel.c if the host system doesn't have elf.h on it. Obviously,
this scenario is not very common, but it has come up a few times lately I've
noticed.

Anyway, no biggie but thought it worth mentioning.



More information about the Libc-alpha mailing list