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