[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include path in module compilation



> Looking at kernel newbies (and other places as well)
> I see that kernel modules are compile with the
> -I/path/to/kernel/headers.
> Meaning not only that the standard includes (i.e.
> /usr/include) are used, but also that they are used
> BEFORE the kernel headers.
> 
> Is my common sense wrong ?

ur common sense is correct, however ur analisys is not complete.
although we get -I/path/to/kernel/headers on the command line, we also use 
-nostdinc . that solves ur problems.


-- 
========================================================================
nir.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/