On 31/01/2010 15:31, Pedro Alves wrote:
> 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.

  Righto.  I was a bit concerned about the comment about it having to match
SYSTEM_INCLUDE_DIR.

>> 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.

  Well, --with-headers is deprecated, and --with-sysroot is meant to be the
way to go these days, so I figure your patch is preferable if nothing untoward
crops up.

>  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.

  I took a quick look at some of the other fixes that are getting applied, for
instance _mingw.h gets this:

@@ -242,7 +251,7 @@
 #define __MINGW_ATTRIB_NONNULL(arg)
 #endif /* GNUC >= 3.3 */

-#if defined(UNDER_CE) && defined(__arm__)
+#if defined(__UNDER_CE__) && defined(__arm__)
 /* ARM Windows CE is not underscored.  */
 # define __U(SYM) _ ## SYM
 # define __IMP(S) __imp_ ## S


... and many files (this is wininet.h) have changes relating to the unicode 
flag:

@@ -731,7 +740,7 @@ typedef struct {
        DWORD dwFlags;
 } INTERNET_CONNECTED_INFO, * LPINTERNET_CONNECTED_INFO;

-#ifdef UNICODE
+#ifdef __UNICODE__
 typedef URL_COMPONENTSW URL_COMPONENTS;
 typedef LPURL_COMPONENTSW LPURL_COMPONENTS;
 typedef GOPHER_FIND_DATAW GOPHER_FIND_DATA;

  Do those look sensible to you?  There could conceivably be some knock-on
effect of having all the fixed headers for the first time.

    cheers,
      DaveK


------------------------------------------------------------------------------
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