From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: vonbrand@sleipnir.valparaiso.cl (Horst von Brand) Cc: egcs@cygnus.com Subject: Re: cpp only piece not parametrized with gcc-lib directory? Date: Mon, 23 Mar 1998 21:57:00 -0000 Message-id: References: <199803230403.AAA08140@sleipnir.valparaiso.cl> X-SW-Source: 1998-03/msg00790.html > > 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.