This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to change the default path from /usr/include for gcc using CFLAGS
- From: Ian Lance Taylor <iant at google dot com>
- To: "Koyel Mukherjee" <koyelmjee at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 10 Jul 2007 09:57:29 -0700
- Subject: Re: how to change the default path from /usr/include for gcc using CFLAGS
- References: <a7162eaa0707100919y33acb0fbn1c63c4caad52125e@mail.gmail.com>
"Koyel Mukherjee" <koyelmjee@gmail.com> writes:
> I need to change the default path for gcc from /usr/include to a path
> of my choice. What option should I set in CFLAGS of my makeconf file
> to make this happen? Specifically is there any option in CFLAGS to
> force the compiler to look into a specific path for the includes?
Read the friendly manual. Look for -I and -nostdinc.
Ian