Re: Re: Include path in module compilation

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

 



"nostdinc" is definitely the reasonable thing to use.
However, if you look at http://kernelnewbies.org/faq/index.php3#compmod which
is usually a good source of information, you don't
see that.

-----Original Message-----
From: Nir Tzachar <tzachar@cs.bgu.ac.il>
To: Gilad Benjamini <yaelgilad@myrealbox.com>
Date: Thu, 5 Feb 2004 08:34:52 +0200 (IST)
Subject: 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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux