RTEMS: Add -D_COMPILING_NEWLIB
Corinna Vinschen
vinschen@redhat.com
Tue Nov 16 17:53:00 GMT 2010
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
More information about the Newlib
mailing list