This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch,rtems,m32c] configure.host: m32c bogusly adds -DABORT_PROVIDED
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Tue, 22 Sep 2009 06:15:21 +0200
- Subject: [patch,rtems,m32c] configure.host: m32c bogusly adds -DABORT_PROVIDED
Hi,
in configure.host, when building newlib for m32c* targets,
-DABORT_PROVIDED is set too early (in the first, cpu-specific "case
$host"), such that it overrides later settings from the second
os-specific "case $host".
This breaks building m32c-rtems*, because RTEMS uses a common "abort"
for all targets.
The patche moves adding -DABORT_PROVIDED from the "first case $host" to
the "second case $host".
Ralf
2009-09-22 Ralf CorsÃpius <ralf.corsepius@rtems.org>
* configure.host (m32c): Move setting -DABORT_PROVIDED to second
"case $host".
Index: configure.host
===================================================================
RCS file: /cvs/src/src/newlib/configure.host,v
retrieving revision 1.106
diff -u -r1.106 configure.host
--- configure.host 22 Apr 2009 19:52:49 -0000 1.106
+++ configure.host 22 Sep 2009 03:41:31 -0000
@@ -166,7 +166,7 @@
;;
m32c)
machine_dir=m32c
- newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -DABORT_PROVIDED -DSMALL_MEMORY"
+ newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY"
;;
m32r*)
@@ -648,7 +648,7 @@
;;
m32c-*-*)
default_newlib_io_long_long="yes"
- newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
+ newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DABORT_PROVIDED"
syscall_dir=
;;
m32r-*-*)