]> git.neil.brown.name Git - history.git/commit
kbuild: Use -nostdinc with kernel sources
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 5 Jun 2002 15:16:38 +0000 (10:16 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 5 Jun 2002 15:16:38 +0000 (10:16 -0500)
commit8da465925fb16796b1bb1fc00ac66866a90913fc
tree75fb828f607a5198441005dfab25930ce1386e8c
parent4a48579423288feed2eba7de9fd1884999bdc01f
kbuild: Use -nostdinc with kernel sources

Kernel code should not include userspace headers. To avoid that
happening by mistake, ask gcc not to look into the usual places
when looking for headers. We still need to find gcc headers for
vararg and similar, though - achieved by the "-iwithprefix include"
which will look into <gcc-path>/include, as proposed by Russell
King.

A similar patch went into 2.4, so not much breakage expected.
Makefile
Rules.make