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.
Showing
Please register or sign in to comment