• Kai Germaschewski's avatar
    kbuild: Use -nostdinc with kernel sources · 8da46592
    Kai Germaschewski authored
    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.
    8da46592
Rules.make 12.3 KB