Subject: Re: different behaviour of system cc and TOOLDIR/cc
To: Frederick Bruckman <>
From: Ian Lance Taylor <>
List: tech-toolchain
Date: 06/08/2003 21:21:25
Frederick Bruckman <> writes:

> And the includes? When you compile a cross-compiler with
> --with-headers=${DESTDIR}/usr/include, it stuffs them into
> ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/sys-include. That directory isn't
> in the paths, however, shown by ${TOOLDIR}/bin/gcc -print-search-dirs.

-print-search-dirs doesn't print the paths used to find header files.

You can see them by doing, e.g., `gcc -E -xc -v /dev/null'

The sys-include directory should be on the list for a cross-compiler.
Note that it will be listed as ``omitted'' if it does not exist.