Adding default search path for CPP

Hi there,

I have built myself a GCC (3.4.4) for PowerPC with a cross compilation toolchain running on a x86, together with glibc-2.3.4 and binutils-2.16. On the PowerPC there is a system runnign already (only console ofc, nothing "cosy", kernel-2.6.15).

So my question is how to propperly "install" the newly built GCC on the PowerPC (there is no compiler available on it ATM). What I do is mount a partition under /usr1, secure-copy all the built files on the PowerPC machine, and add the binary directories under /usr1 to PATH.

Now, when I try to compile a Hello program the CPP doesn't find stdio.h for example, which is not what I wanted :eek:
I "dirty hacked" that by creating some symlinks in the default places where CPP searches for headers. It works, but I know I'm a sinner :slight_smile:

So, how can I specifiy the search paths for CPP at compile time, or maybe also override the default ones? Because my "hack" works for single programs, but when I try to build a kernel for example, I need the kernel headers to be found by CPP. How is that achieved?

I configured the GCC as following:

/doocs/develop/boyanov/source/gcc-3.4.4/configure --build=i686-pc-linux-gnu 
--target=powerpc-unknown-linux-gnu
--host=powerpc-unknown-linux-gnu 
--prefix=/usr1/local 
--enable-threads=posix 
--enable-symvers=gnu 
--enable-shared 
--with-gcc-version-trigger=/doocs/develop/boyanov/source/gcc-3.4.4/gcc/version.c 
--no-create 
--no-recursion

Many thanks for the help in advance.

Dude, I'm not sure if this will be of any help, but take a look at this.. Sorry if I didn't get the requirement correctly, I'll ask someone when I get to work.