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: GCC 2.95 does not look in /usr/local/include


> 
> hjl@lucon.org (H.J. Lu) writes:
> 
> |> > 
> |> > Just in case someone wonders why gcc 2.95 does not find their headers in
> |> > /usr/local/include when prefix != /usr/local I'd suggest to take a look at
> |> > http://egcs.cygnus.com/ml/gcc-patches/1999-07/msg00488.html or
> |> > http://egcs.cygnus.com/ml/gcc-patches/1999-05/msg00477.html.  I won't
> |> > report this bug a third time, but IMHO it is still enough time to fix it
> |> > before the release.
> |> > 
> |> 
> |> I sent a patch many years for Linux to make gcc as the vendor compiler and
> |> it was accepted. However, egcs didn't have the patch and I sent it again.
> 
> And in which way is this related to the bug that I have described?
> 

BTW, with

# ..../configure -prefix=/usr --with-local-prefix=/usr/local

on Linux, I got

# gcc -c -v l.c
eading specs from /usr/lib/gcc-lib/i686-pc-linux/2.95.16/specs
gcc version 2.95.16 19990716/Linux (prerelease)
 /usr/lib/gcc-lib/i686-pc-linux/2.95.16/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95
-D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix
-D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686
-Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ l.c /tmp/ccGCBUl6.i
GNU CPP version 2.95.16 19990716/Linux (prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i686-pc-linux/2.95.16/../../../../i686-pc-linux/include
 /usr/lib/gcc-lib/i686-pc-linux/2.95.16/include
 /usr/include
End of search list.

/usr/local/include is searched.


-- 
H.J. Lu (hjl@gnu.org)


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