Re: -iwithprefix include

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

 



Mad Hatter wrote:
Hi,

What's the diff. between "-iwithprefix include" used
to
compile the kernel sources and just plain "-Iinclude"
?
The gcc docs say withprefix is discouraged and seem to
indicate that it needs a prior "-iprefix" which is not
present in the kernel compiles.
It has something related to compiler speicific header files. I think. For that you can't use std headers in kernel, then you add a flag -nostdinc, but then the compiler specific headers were gone, so you have to get them back, and -iwithprefix include magically done that. This is just my random guess. I've been hit by this for my own modules and I have to copy exactly the CFLAGS in kernel to my Makefile. So I guess. 8)

--
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