Reentrant vs non-reentrant stubs
Doug Broadwell
dougb@value.net
Thu Oct 3 10:59:00 GMT 2002
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
More information about the Newlib
mailing list