Missing -isystem include-fixed when building canadian cross libgcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'd like to build a canadian cross configured with
  --host=i586-mingw32
  --build=i686-linux-gnu

Everything goes fine except building libgcc because limits.h cannot be found, as include-fixed is not in include path.

The problem looks like this: For a native build, i.e. host=build, libgcc/Makefile sets CC to
> CC = [target-gcc-build-dir]/./gcc/xgcc -B[target-gcc-build-dir]/./gcc/
but for host != build it is
> CC = [target-gcc]
without adding [target-gcc-build-dir]/./gcc/include-fixed
to the include directory search path my means of -isystem.
However, this directory contains the limits.h.

I fixed the problem as indicated in the diff attached by adding the include-fixed to GCC's configure.

Is that the right way to fix that?

Thanks for any hints,

Georg-Johann

Index: configure
===================================================================
--- configure	(revision 36)
+++ configure	(working copy)
@@ -5832,7 +5832,7 @@ case " $target_configdirs " in
        # to it.  This is right: we don't want to search that directory
        # for binaries, but we want the header files in there, so add
        # them explicitly.
-       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
+       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
 
        # Someone might think of using the pre-installed headers on
        # Canadian crosses, in case the installed compiler is not fully

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux