Samuel Tardieu wrote:
"Thomas" == Thomas Quinot <[EMAIL PROTECTED]> writes:
Thomas> As an alternative to Arno's suggestion, maybe you could use
Thomas> the --with-sysroot configure parameter to make the required
Thomas> headers available to the build process. I know others have
Thomas> used this method on some cross targets.
Do you mean --with-build-sysroot?
I tried that and got a variation on the theme to work.
I used CFLAGS_FOR_TARGETS to pass in where the
OS include files where. I posted a patch to gcc-patches
and ACATS results to gcc-testresults.
Thanks for the hint. Hopefully the patch is OK. It isn't big.
FWIW cd2a24e now has a gnat bug box on sparc and powerpc.
I filed it as PR 35298.
For those who care, --sysroot does not work RTEMS because:
(1) Apparently the RTEMS standard binutils RPMs do
not support sysroots.
/home/joel/work-gnat/svn//install/powerpc-rtems4.9/bin/ld: this linker
was not configured to use sysroots
collect2: ld returned 1 exit status
(2) RTEMS doesn't install into a /usr/include structure. According to
the gcc documentation--sysroot DIR looks in DIR/usr/[include|lib].
--joel