$ gcc -v Using built-in specs. COLLECT_GCC=/tools/pkg/gcc/4.5.0/bin/gcc COLLECT_LTO_WRAPPER=/tools/pkg/gcc/4.5.0/libexec/gcc/i386-pc-solaris2.10/4.5.0/lto-wrapper Target: i386-pc-solaris2.10 Configured with: gcc-4.5.0/configure --enable-languages=c,c++ --disable-bootstrap --disable-nls --with-local-prefix=no --with-as=/tools/pkg/binutils/2.19/bin/as --with-ld=/tools/pkg/binutils/2.19/bin/ld --prefix=/tools/pkg/gcc/4.5.0 Thread model: posix gcc version 4.5.0 (GCC)
I got this '--with-local-prefix=no' from looking at gcc/configure But it doesn't work as expected: $ touch a.c $ gcc -v a.c ... #include "..." search starts here: #include <...> search starts here: /usr/local/include /tools/pkg/gcc/4.5.0/include /tools/pkg/gcc/4.5.0/lib/gcc/i386-pc-solaris2.10/4.5.0/include /tools/pkg/gcc/4.5.0/lib/gcc/i386-pc-solaris2.10/4.5.0/include-fixed /usr/include End of search list. ... /usr/local/include is still there. What is the correct way to have no local prefix? -- Summary: configure --with-local-prefix=no does nothing Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43970