This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cpp only piece not parametrized with gcc-lib directory?
- To: vonbrand at sleipnir dot valparaiso dot cl (Horst von Brand)
- Subject: Re: cpp only piece not parametrized with gcc-lib directory?
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 23 Mar 1998 19:42:57 -0800 (PST)
- Cc: egcs at cygnus dot com
>
> 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.