This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Turn on posix directory for RTEMS
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sources dot redhat dot com" <newlib at sources dot redhat dot com>
- Date: Wed, 5 Nov 2008 16:15:49 -0600
- Subject: Turn on posix directory for RTEMS
Hi Jeff,
You and I discussed this a week or two ago and here
is the patch. We had stubs for the exec* routines and
a copy of the *dir routines from around newlib 1.8.
After this is merged and Ralf turns the crank for
new RTEMS gcc/newlib RPMs with this, we can
delete some files from RTEMS. :)
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.host: RTEMS now uses posix subdirectory.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: configure.host
===================================================================
RCS file: /cvs/src/src/newlib/configure.host,v
retrieving revision 1.99
diff -u -r1.99 configure.host
--- configure.host 1 Apr 2008 18:58:07 -0000 1.99
+++ configure.host 5 Nov 2008 21:55:38 -0000
@@ -340,7 +340,7 @@
;;
*-*-rtems*) # generic RTEMS support
sys_dir=rtems
- # RTEMS POSIX support is all inside RTEMS
+ posix_dir=posix
;;
a29k-*-*)
sys_dir=a29khif
@@ -532,7 +532,7 @@
# NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
*-*-rtems*)
default_newlib_io_long_long="yes"
- newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DHAVE_FCNTL"
+ newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_FCNTL"
;;
# VxWorks supplies its own version of malloc, and the newlib one
# doesn't work because VxWorks does not have sbrk.