Re: best practices on gcc building host tool for cross arch

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

 



T Michael Turney wrote:
Hi Michael,
Thanks for the suggestion, which I had considered and tried already.
The problem is that while I can directly include the top-level file,
say elfcore.h, the files it includes will come from the host kernel
and not the target kernel.

Take a look at the -nostdinc and -isystem options.

Certainly one of the approaches I can take is to maintain a second
copy of the target kernel header files that I need access to for this
tool, and make sure they include from the target area.

Your target headers need to be somewhere accessible to the compiler.
There's no magic way that the compiler will know what they contain.

--
Michael Eager	 eager@xxxxxxxxxxxx
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux