This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpp only piece not parametrized with gcc-lib directory?


> 
> I built egcs-1.0.2 some days back for i586-pc-linux-gnu (the default), but
> my compilers live in i386-redhat-linux, per RedHat-5.0 convention.  Not
> wanting to rebuild everything, I just moved the directory egcs-2.90.27 from
> /usr/lib/gcc-lib/i586-pc-linux-gnu to /usr/lib/gcc-lib/i386-redhat-linux. I
> tried a small C program with:
> 
>       gcc -V egcs-2.90.27 -v hello.c
> 
> The _only_ (and easily fixed) trouble was that cpp hardwired
> /usr/lib/gcc-lib/i586-pc-linux-gnu/include into the <> search path. It
> would be nice if it got this, e.g., from either a -I created by the
> compiler driver, or read it from .../specs.
> 

# ls -l /usr/lib/gcc-lib
total 19
lrwxrwxrwx   1 root     root           18 Mar  6 21:29 i386-redhat-linux -> i586-unknown-linux
drwxr-xr-x   4 root     root         1024 Mar 17 12:27 i586-unknown-linux


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]