This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Reentrant vs non-reentrant stubs
- From: "Doug Broadwell" <dougb at value dot net>
- To: "Newlib Mail List" <newlib at sources dot redhat dot com>
- Date: Thu, 3 Oct 2002 10:56:18 -0700
- Subject: Reentrant vs non-reentrant stubs
- Organization: DBA Associates
- Reply-to: "Doug Broadwell" <dougb at value dot net>
Making cross-environment for m68k-unknown-coff on i686-pc-linux-gnu.
The documentation in reent.h states that to use reentrant stubs (e.g.,
_open_r() ), make the following changes in configure.in (it doesn't state
which configure.in to change):
set syscall_dir to syscalls
add -DREENTRANT_SYSCALLS_PROVIDED to target_cflags
To use non-reentrant stubs of the form, e.g., _open():
set syscalls_dir to syscalls
To use non-reentrant stubs of the form, e.g., open():
add -DMISSING_SYSCALL_NAMES to target_cflags
My problems are: Which configure.in? "target_cflags" doesn't exist in any
configure.in, the closest thing is "CFLAGS", what to do? What is the
default configuration "out of the box"?
Another problem, if I make a new install/build of newlib it makes fine. If
I immediately do a "make all install" or a "make clean all install", it
error's out on the "__extension__ long long ..." statement in reent.h I've
tried this under both a 2.95.3 gcc and 3.2 gcc. ???
Thanks, Doug