This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Location of system headers
- To: Soubhik Bhattacharya <soubhik at cse dot iitk dot ac dot in>
- Subject: Re: Location of system headers
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 03 Jun 2001 11:13:48 -0300
- Cc: GCC-Help List <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.21.0106031422170.6805-100000@cseproj22.cse.iitk.ac.in>
On Jun 3, 2001, Soubhik Bhattacharya <soubhik@cse.iitk.ac.in> wrote:
> i've gcc 2.93.3 installed in my i586-mandrake-linux system. how do i know
> what are the locations searched by gcc for system headers?
gcc -E -v -
will print the directories searched by default.
> also, is there a way to change it (not for a particular invokation
> of gcc but permanently, ie to affect all the subsequent
> invokations)?
You can always install a wrapper script that passes -I/-isystem
/additional/path to gcc, or modify the specs file that GCC uses to
determine the flags passed to cpp and cc1.
You can also set the GCC_EXEC_PREFIX environment variable to add to
the default search list.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me