passing a specific header file to GCC for cross-build

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

 



Hi everybody,

I am trying to build a cross compiler from i686-pc-linux-gnu to
powerpc-elf (target platform has no OS).

In order to start compiling GNAT for this platform, I would like to pass
certain custom system header files and libraries (i.e. my own little C
library, whatever is necessary to get GNAT running) to be used when
compiling gcc.

Specifically, a GNAT cross-compilation asks for <dirent.h> to be present
on the target system. (well, that is the first thing, which comes into
play when building...)
As my target has no file system, I would be fine to just implement a
couple of dummy functions for opendir() readdir() and closedir().

How can I tell gcc to use my custom header files and link against the
corresponding library functions?

Cheers,
Andreas

PS: I'm currently using the SVN head, if the gcc version does matter.

[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