This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
How To Disable Building getreent.c
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Thu, 5 Oct 2017 08:53:32 -0500
- Subject: How To Disable Building getreent.c
- Authentication-results: sourceware.org; auth=none
Hi
RTEMS is now providing its own version of __getreent() and
in some situations we are getting link errors because one
is in RTEMS and another is in the newlib libc.a.
The method in libc/getreent.c isn't wrapped by a conditional.
I assume adding something to configure.host and using that
to disable the contents of libc/getreent.c is the right
approach. Would GETREENT_PROVIDED be OK for the conditional?
There is already MALLOC_PROVIDED so this would at least
be consistent with one other host feature macro.
Thanks.
--joel