Small bug for RTEMS support in newlib-1.8.0
Joel Sherrill
joel@OARcorp.com
Tue Jan 6 08:09:00 GMT 1998
On Tue, 6 Jan 1998, Eric Valette wrote:
> I used the following configure option for newlib-1.8.0
>
> configure --host=i586-pc-linux-gnu --target=i386-unknown-rtems --norecursion
>
> And found a single problem in newlib/libc/sys/rtems/sys/signal.h
> due to the fact that signal.c makes use of NSIG anyway...
This is the configuration problem for newlib 1.8.0 which I have already
sent a patch in for. The error is the setting of target_cflags in
newlib/configure.in. It needs to be:
target_cflags="${target_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED
-DREENTRANT_SYSCALLS_PROVIDED"
This patch may be necessary for other targets but not for RTEMS
specifically.
FYI RTEMS does have support for POSIX style signals -- you just have to
enable POSIX when you build RTEMS.
--joel
Joel Sherrill Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (205) 722-9985
More information about the Newlib
mailing list