This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: RTEMS: Add -D_COMPILING_NEWLIB
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 16 Nov 2010 18:20:25 +0100
- Subject: Re: RTEMS: Add -D_COMPILING_NEWLIB
- References: <4CAF37AC.8030607@rtems.org>
- Reply-to: newlib at sourceware dot org
On Oct 8 17:24, Ralf Corsepius wrote:
> Hi,
>
> similar to Cygwin, compiling newlib for RTEMS needs -D_COMPILING_NEWLIB.
>
> BTW: I am wondering if -D_COMPILING_NEWLIB shouldn't be supplied
> globally for all targets and not only for RTEMS and Cygwin.
>
> Ralf
> 2010-10-08 Ralf Cors??pius <ralf.corsepius@rtems.org>
>
> * configure.host: Add -D_COMPILING_NEWLIB to newlib_cflags.
Patch applied. I'm not sure it's a good idea to add -D_COMPILING_NEWLIB
to all targets. I don't know how RTEMS handles it, but in Cygwin it's
only used in very special cases in which we have clashes between newlib
and Cygwin definitions (for instance when using _off_t vs. off_t).
Are you sure that all cases in which `#ifdef _COMPILING_NEWLIB' is used
in newlib are also feasible for RTEMS?
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat