![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding PATH variable | wir3d | UNIX for Dummies Questions & Answers | 3 | 09-19-2007 05:45 AM |
| Adding PATH variable in the startup scripts | rajanishshetty | UNIX for Dummies Questions & Answers | 5 | 03-02-2007 12:51 PM |
| Question about Restricting Search path of FIND to current directory | super_duper_guy | UNIX for Dummies Questions & Answers | 2 | 10-17-2005 09:10 AM |
| Adding "Private" to path name | roadrunnerray | UNIX for Dummies Questions & Answers | 5 | 10-15-2004 10:33 AM |
| home directory in search path | jpprial | UNIX for Dummies Questions & Answers | 2 | 09-10-2001 11:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 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 ![]() 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: Code:
/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 |
|
|||||
|
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.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|