The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-05-2007
boyanov boyanov is offline
Registered User
  
 

Join Date: Feb 2007
Location: Berlin / Sofia
Posts: 10
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
Many thanks for the help in advance.
  #2 (permalink)  
Old 09-10-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0