This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: DYNAMIC_REENT revisited
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Anders Lindgren <ali at df dot lth dot se>
- Cc: newlib at sourceware dot org
- Date: Tue, 19 Jun 2007 17:14:25 -0400
- Subject: Re: DYNAMIC_REENT revisited
- References: <Pine.GSO.4.60.0706191751460.8234@igloo.df.lth.se>
Anders Lindgren wrote:
As far as I understand, when making my own target I need to be put any
_REENT_SMALL, __DYNAMIC_REENT__ etc defines into <sys/config.h> to be
able to use the resulting C library afterwards without always specifying
-D... on the command line. Question is, do I still need to put those in
${newlib_cflags} in my configure.host when building newlib? Won't they
be picked up from <sys/config.h> by the sources anyway?
If you set those flags in <sys/config.h>, you do not need to add them in
newlib_cflags.
-- Jeff J.