Subject: Re: different behaviour of system cc and TOOLDIR/cc
To: Frederick Bruckman <fredb@immanent.net>
From: Ian Lance Taylor <ian@airs.com>
List: tech-toolchain
Date: 06/08/2003 21:21:25
Frederick Bruckman <fredb@immanent.net> 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.

Ian