[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] cygwin build
From: |
Rob Landley |
Subject: |
Re: [Tinycc-devel] cygwin build |
Date: |
Tue, 28 Aug 2007 20:33:51 -0500 |
User-agent: |
KMail/1.9.6 |
On Monday 27 August 2007 8:28:56 pm Gregg Reynolds wrote:
> Well, that was a lot easier than I expected. It'll be a while before
> I get a decent Makefile built, but it took about 20 minutes to get it
> to build on cygwin. Three problems:
>
> * __malloc_hooks isn't supported by cygwin, which uses the redhat
> newlib (http://sourceware.org/newlib/) instead of glibc. Fix: add
> __CYGWIN__ to the list of platforms that don't do __malloc_hooks in
> bcheck.c
>
> * tcc.h includes sys/ucontext.h, which is unsupported in newlib.
> But it looks like it isn't actually used in tcc. Fix: remove the
> #include stmt?
>
> * strtold is unsupported. Changed it to strtod just to get a
> compile working, but this one looks like a requirement, so we'd need
> to ship an implementation.
I just yanked the ucontext.h include. Let me know when you've got a patch for
the other two...
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.