[clug] discovering gcc "<xxx.h>" (system) include directories

Scott Ferguson scott.ferguson.clug at gmail.com
Fri Nov 23 20:23:53 MST 2012

On 23/11/12 16:10, steve jenkin wrote:
> I've been using a Macports gcc for i386-elf to cross-compile Linux kernel.
> Note: this is a non-standard gcc with very non-standard paths (in
> /opt/local) compiled in. [and incorrectly]
> I'm at a loss as to how to find what include directories are compiled
> into a version of 'gcc'.
> I've used Makefile settings to over-ride whatever defaults it uses, but
> I'm left underwhelmed...
> Anyone fought this dragon and know how to discover the magic?

echo | gcc -v -x c -E -

If man / is TL, try

Kind regards

More information about the linux mailing list