Re: How to customize GCC builtin search paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 10, 2020 at 1:16 PM Jim Wilson <jimw@xxxxxxxxxx> wrote:
>
> On Thu, Apr 9, 2020 at 7:52 PM William Tambe via Gcc-help
> <gcc-help@xxxxxxxxxxx> wrote:
> > How to customize GCC builtin search paths that it uses for %s in its
> > specs syntax ?
>
> This is startfile_prefixes in gcc.c.

I can hardly find examples on how to use startfile_prefixes. Currently
when running gcc as follow:
arch-elf-gcc -v test.c

I get the following excerpt showing how gcc looks for includes:

#include "..." search starts here:
#include <...> search starts here:
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/include
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/include-fixed
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/../../../../arch-elf/include

However, I am looking to change how gcc looks for includes as follow:

#include "..." search starts here:
#include <...> search starts here:
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/../../../../include
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/../../../../arch-elf/include
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/include
/opt/arch-toolchain/lib/gcc/arch-elf/9.2.0/include-fixed

Any idea what piece of code populate the list of paths where to look
for includes ?

>
> Jim



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux