This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc and include dirs -> use the C_INCLUDE_PATH var.
C_INCLUDE_PATH does exist?
[root at pc103 ~/cvssources/gcccvs]# grep -rl C_INCLUDE_PATH .
./gcc/gcc/ada/gnat_ug.texi
./gcc/gcc/doc/cpp.1
./gcc/gcc/doc/gcc.1
./gcc/gcc/doc/cpp.info-4
./gcc/gcc/doc/cppenv.texi
./gcc/gcc/doc/gcc.info-10
./gcc/gcc/doc/gcc.info-23
./gcc/gcc/doc/gcc.info-39
./gcc/gcc/doc/gcc.info-40
./gcc/gcc/cppinit.c
./gcc/gcc/gcc.info-36
./gcc/gcc/ChangeLog.1
./gcc/gcc/gcc.info-9
[root at pc103 ~/cvssources/gcccvs]#
That's great :-)
So we don't need a special config file.
I hope that some of the major distributors will use this
variable and put more things into /opt/* instead of /usr (/usr/bin ...)
Thank you very much for this info :-)
On Friday February 28 2003 16:34, you wrote:
> On Fri, Feb 28, 2003 at 04:32:12PM +0100, Gerold J. Wucherpfennig wrote:
> > On Friday February 28 2003 08:19, I wrote:
> > > I've installed many packages into /opt to
> > > get rid of "put everything into /usr/bin".
> > >
> > > Now my CFLAGS and CXXFLAGS lines are _really_ long,
> > > because I have to include the include dir of each /opt dir.
> > > ( -I/opt/package/include ...)
> > >
> > > Is there any chance to get a "includes.conf" file in /etc ?
> > > This should be a kind of ld.so.conf and list all include directories
> > > which gcc should include at compile time.
> >
> > Alternatively there could be a special envionment variable "INCLUDE_PATH"
> > - a kind of LD_LIBRARY_PATH ...
>
> Try C_INCLUDE_PATH.