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: Why is $prefix/include not inside cpp searchpath?


Hi Per,

On Thu, Sep 20, 2001 at 09:44:24AM -0700, Per Bothner wrote:
> Martin Kahlert wrote:
> 
> >Hi!
> >
> >I checked out yesterday's gcc version and found that jni.h is not
> >found any more although it's there:
> >
> See http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00519.html
> for a patch.

Thanks for the hint!

> I don't know if $prefix/include has ever been in the search path, at
> least not for a long time.

At least gcc-3.0.* search inside $prefix/include:
$ gcc -v -c c.c

Reading specs from /sw/snapshots/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/specs
Configured with: ../gcc-20010917/configure --prefix=/sw/snapshots --enable-languages=c++,f77,java --enable-threads=posix
Thread model: posix
gcc version 3.0.2 20010917 (prerelease)
 /sw/snapshots/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ c.c -quiet -dumpbase c.c -version -o /tmp/ccxhIBGg.s
GNU CPP version 3.0.2 20010917 (prerelease) (cpplib) (i386 Linux/ELF)
GNU C version 3.0.2 20010917 (prerelease) (i686-pc-linux-gnu)
	compiled by GNU C version 3.0.2 20010910 (prerelease).
ignoring nonexistent directory "/sw/snapshots/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /sw/snapshots/include
 /sw/snapshots/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/include
 /usr/include
End of search list.
 /sw/snapshots/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o c.o /tmp/ccxhIBGg.s
GNU assembler version 2.11.2 (i686-pc-linux-gnu) using BFD version 2.11.2


Martin.

-- 
The early bird catches the worm. If you want something else for       
breakfast, get up later.


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