On Sunday 31 January 2010 15:23:05, Dave Korn wrote:
> 
> > in t-wince-pe (or some other make fragment) ?
> > 
> > I see that config/i386/t-mingw32 has:
> > 
> > NATIVE_SYSTEM_HEADER_DIR = /mingw/include
> 
>   Will that work in cross?

Yes.  Due to:

configure.ac:
 
CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'

I also saw:
  config/spu/t-spu-elf:19:NATIVE_SYSTEM_HEADER_DIR = /include

There's no native spu-elf toolchain for sure, so this looks like
some precedent.

> or possibly just run the 
> install-headers stage of it and force it to install to
> $prefix/$target/sys-include.

Right, that should work too, though the --with-headers pseudo-ugly
option avoided needless copies of files in the end.

I'm not sure what is the best approach.  I've just built a toolchain
with the patches below.  A bunch of files showed up on include-fixed,
amonst which, there was a include-fixed/syslimits.h file.

Index: gcc/config/arm/t-wince-pe
===================================================================
--- gcc/config/arm/t-wince-pe   (revision 1439)
+++ gcc/config/arm/t-wince-pe   (working copy)
@@ -161,3 +161,5 @@ SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
 # does not get substituted before mkmap-flat.awk is run.
 SHLIB_MKMAP_OPTS = -v 
pe_dll=libgcc_s_$(EH_MODEL)-$(SHLIB_SOVERSION)$(SHLIB_EXT)
 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
+
+NATIVE_SYSTEM_HEADER_DIR = /include



Index: build-mingw32ce.sh
===================================================================
--- build-mingw32ce.sh  (revision 1440)
+++ build-mingw32ce.sh  (working copy)
@@ -192,6 +194,7 @@ build_binutils()
        --host=${HOST}          \
        --target=${TARGET}      \
        --disable-nls           \
+       --with-sysroot=${PREFIX}/${TARGET}/ \
        --disable-werror
 
     make ${PARALLELISM}
@@ -221,6 +224,7 @@ build_bootstrap_gcc()
        --disable-shared               \
        --disable-interwork            \
        --without-newlib               \
+       --without-headers              \
        --enable-checking       || exit 1
     
     case ${gcc_src} in
@@ -341,11 +345,11 @@ build_gcc()
             --disable-interwork            \
             --without-newlib               \
             --enable-checking              \
-            --with-headers                     \
+            --with-sysroot=${PREFIX}/${TARGET}/ \
             --disable-__cxa_atexit
         ;;
     esac
-    
+
 
 # we build libstdc++ as dll, so we don't need this.    
 #  --enable-fully-dynamic-string  \
@@ -382,6 +386,7 @@ build_gdb()
        --disable-win32-registry       \
        --disable-multilib             \
        --disable-interwork            \
+       --with-sysroot=${PREFIX}/${TARGET}/ \
        --enable-checking
 
     export CFLAGS=${PREV_CFLAGS}


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to