2000-02-18 03:39:52 +08:00
|
|
|
# configure.host
|
|
|
|
|
|
|
|
# This shell script handles all host based configuration for newlib.
|
|
|
|
# It sets various shell variables based on the the host and the
|
|
|
|
# configuration options. You can modify this shell script without
|
|
|
|
# needing to rerun autoconf.
|
|
|
|
|
|
|
|
# This shell script should be invoked as
|
|
|
|
# . configure.host
|
|
|
|
# If it encounters an error, it will exit with a message.
|
|
|
|
|
|
|
|
# FIXME: This script is too complicated. It does things in too many
|
|
|
|
# different ways. This was taken from the old Cygnus configure script
|
|
|
|
# with only minor changes. It should be cleaned up.
|
|
|
|
|
|
|
|
# FIXME: The general approach of picking and choosing which
|
|
|
|
# directories to configure, other than machine_dir and sys_dir, is
|
|
|
|
# potentially confusing.
|
|
|
|
|
|
|
|
# It uses the following shell variables:
|
|
|
|
# host The configuration host
|
|
|
|
# host_cpu The configuration host CPU
|
|
|
|
# newlib_mb --enable-newlib-mb ("yes", "no")
|
|
|
|
# target_optspace --enable-target-optspace ("yes", "no", "")
|
2002-09-21 01:11:29 +08:00
|
|
|
# newlib_multithread --enable-newlib-multithread ("yes", "no", "yes")
|
|
|
|
# newlib_elix_level --enable-newlib-elix-level ("1","2","3","4") ("4")
|
2004-05-26 08:19:14 +08:00
|
|
|
# newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "")
|
|
|
|
# newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
# It sets the following shell variables:
|
|
|
|
# newlib_cflags Special CFLAGS to use when building
|
|
|
|
# machine_dir Subdirectory of libc/machine to configure
|
|
|
|
# sys_dir Subdirectory of libc/sys to configure
|
2002-05-01 02:23:40 +08:00
|
|
|
# have_sys_mach_dir Is there a machine subdirectory in sys subdirectory
|
2000-02-18 03:39:52 +08:00
|
|
|
# posix_dir "posix" to build libc/posix, "" otherwise
|
|
|
|
# signal_dir "signal" to build libc/signal, "" otherwise
|
2002-07-20 04:36:09 +08:00
|
|
|
# stdio64_dir "stdio64" to build libc/stdio64, "" otherwise
|
2000-02-18 03:39:52 +08:00
|
|
|
# syscall_dir "syscalls" to build libc/syscalls, "" otherwise
|
|
|
|
# unix_dir "unix" to build libc/unix, "" otherwise
|
2001-12-14 07:50:11 +08:00
|
|
|
# use_libtool flag: use libtool to build newlib?
|
|
|
|
# aext library extension - needed for libtool support
|
|
|
|
# oext object file extension - needed for libtool support
|
2002-04-05 06:41:11 +08:00
|
|
|
# crt1 name of crt1 object if one is provided
|
|
|
|
# crt1_dir directory where crt1 object is found
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
newlib_cflags=
|
2001-12-14 07:50:11 +08:00
|
|
|
libm_machine_dir=
|
2000-02-18 03:39:52 +08:00
|
|
|
machine_dir=
|
|
|
|
sys_dir=
|
|
|
|
posix_dir=
|
|
|
|
signal_dir=signal
|
2002-07-18 07:25:44 +08:00
|
|
|
stdio64_dir=
|
2000-02-18 03:39:52 +08:00
|
|
|
syscall_dir=
|
|
|
|
unix_dir=
|
|
|
|
mach_add_setjmp=
|
2002-04-05 06:41:11 +08:00
|
|
|
crt1=
|
|
|
|
crt1_dir=
|
2001-12-14 07:50:11 +08:00
|
|
|
use_libtool=no
|
2002-04-04 06:46:21 +08:00
|
|
|
have_sys_mach_dir=no
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long=no
|
|
|
|
default_newlib_io_long_double=no
|
|
|
|
default_newlib_io_pos_args=no
|
2001-12-14 07:50:11 +08:00
|
|
|
aext=a
|
|
|
|
oext=o
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
case "${target_optspace}:${host}" in
|
|
|
|
yes:*)
|
|
|
|
newlib_cflags="${newlib_cflags} -Os"
|
|
|
|
;;
|
2000-06-28 03:51:33 +08:00
|
|
|
:m32r-* | :d10v-* | :d30v-* | :avr-*)
|
2000-02-18 03:39:52 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -Os"
|
|
|
|
;;
|
|
|
|
no:* | :*)
|
|
|
|
newlib_cflags="${newlib_cflags} -O2"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Get the source directories to use for the CPU type.
|
|
|
|
# machine_dir should supply CPU dependent routines, such as setjmp.
|
|
|
|
# newlib_cflags is passed to gcc when compiling.
|
|
|
|
# THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
|
|
|
|
|
|
|
|
case "${host_cpu}" in
|
|
|
|
a29k)
|
|
|
|
machine_dir=a29k
|
|
|
|
;;
|
|
|
|
arc)
|
|
|
|
machine_dir=
|
|
|
|
;;
|
|
|
|
arm)
|
|
|
|
machine_dir=arm
|
|
|
|
;;
|
2000-06-28 03:51:33 +08:00
|
|
|
avr*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues"
|
|
|
|
;;
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.host: Add support for cris-*-* and crisv32-*-*.
* libc/include/machine/ieeefp.h: Ditto.
* libc/include/machine/setjmp.h: Ditto.
* libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
files.
2005-01-28 07:54:46 +08:00
|
|
|
cris | crisv32)
|
|
|
|
machine_dir=cris
|
|
|
|
;;
|
2004-10-06 03:44:24 +08:00
|
|
|
crx*)
|
|
|
|
machine_dir=crx
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
d10v*)
|
|
|
|
machine_dir=d10v
|
|
|
|
;;
|
|
|
|
d30v*)
|
|
|
|
machine_dir=d30v
|
|
|
|
;;
|
2003-02-21 03:14:12 +08:00
|
|
|
ep9312)
|
|
|
|
machine_dir=arm
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
fr30)
|
|
|
|
machine_dir=fr30
|
|
|
|
;;
|
2003-02-21 03:14:12 +08:00
|
|
|
frv)
|
|
|
|
machine_dir=frv
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
h8300)
|
|
|
|
machine_dir=h8300
|
|
|
|
;;
|
|
|
|
h8500)
|
|
|
|
machine_dir=h8500
|
|
|
|
;;
|
|
|
|
hppa*)
|
|
|
|
machine_dir=hppa
|
|
|
|
;;
|
|
|
|
i960)
|
|
|
|
machine_dir=i960
|
|
|
|
;;
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86)
|
2000-02-18 03:39:52 +08:00
|
|
|
# Don't use for these since they provide their own setjmp.
|
|
|
|
case ${host} in
|
2002-12-20 10:29:00 +08:00
|
|
|
*-*-sco* | *-*-cygwin*)
|
2001-12-14 07:50:11 +08:00
|
|
|
libm_machine_dir=i386
|
2000-02-18 03:39:52 +08:00
|
|
|
machine_dir=i386
|
|
|
|
;;
|
|
|
|
*)
|
2001-12-14 07:50:11 +08:00
|
|
|
libm_machine_dir=i386
|
2000-02-18 03:39:52 +08:00
|
|
|
machine_dir=i386
|
|
|
|
mach_add_setjmp=true
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
2000-05-11 10:28:06 +08:00
|
|
|
ia64*)
|
|
|
|
;;
|
2003-06-10 23:32:27 +08:00
|
|
|
iq2000)
|
|
|
|
machine_dir=iq2000
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
m32r*)
|
|
|
|
machine_dir=m32r
|
|
|
|
;;
|
2002-07-24 23:44:24 +08:00
|
|
|
|
|
|
|
m68hc11|m6811|m68hc12|m6812)
|
|
|
|
machine_dir=m68hc11
|
|
|
|
newlib_cflags="-DPREFER_SIZE_OVER_SPEED -Os -mrelax"
|
|
|
|
CFLAGS="-g -Os"
|
|
|
|
;;
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
m68*)
|
|
|
|
machine_dir=m68k
|
2002-02-20 08:47:07 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
m88k)
|
|
|
|
machine_dir=m88k
|
|
|
|
newlib_cflags="${newlib_cflags} -m88000"
|
|
|
|
;;
|
|
|
|
m88110)
|
|
|
|
machine_dir=m88k
|
|
|
|
newlib_cflags="${newlib_cflags} -m88110"
|
|
|
|
;;
|
|
|
|
mcore)
|
|
|
|
;;
|
|
|
|
mips*)
|
|
|
|
machine_dir=mips
|
|
|
|
;;
|
2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/include/machine/ieeefp.h: Add support for mmix target.
* libc/include/machine/setjmp.h: Ditto.
* configure.host: Ditto.
* libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
* libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
libc/sys/mmixware/aclocal.m4: Generate.
2001-11-13 05:04:41 +08:00
|
|
|
mmix)
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
mn10200)
|
|
|
|
machine_dir=mn10200
|
|
|
|
;;
|
|
|
|
mn10300)
|
|
|
|
machine_dir=mn10300
|
|
|
|
;;
|
2000-12-05 02:15:35 +08:00
|
|
|
or16)
|
|
|
|
;;
|
|
|
|
or32)
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
powerpc*)
|
|
|
|
machine_dir=powerpc
|
|
|
|
;;
|
2002-02-08 15:11:13 +08:00
|
|
|
sh | sh64)
|
2000-02-18 03:39:52 +08:00
|
|
|
machine_dir=sh
|
|
|
|
;;
|
|
|
|
sparc*)
|
|
|
|
machine_dir=sparc
|
|
|
|
# FIXME: Might wish to make MALLOC_ALIGNMENT more generic.
|
|
|
|
newlib_cflags="${newlib_cflags} -DMALLOC_ALIGNMENT=8"
|
|
|
|
;;
|
|
|
|
strongarm)
|
|
|
|
machine_dir=arm
|
|
|
|
;;
|
2000-11-30 09:57:27 +08:00
|
|
|
xscale)
|
|
|
|
machine_dir=xscale
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
thumb)
|
|
|
|
machine_dir=arm
|
|
|
|
;;
|
2004-02-03 00:59:53 +08:00
|
|
|
tic4x|c4x)
|
|
|
|
machine_dir=tic4x
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
tic80*)
|
|
|
|
machine_dir=tic80
|
|
|
|
;;
|
|
|
|
v70)
|
|
|
|
;;
|
|
|
|
v810)
|
|
|
|
;;
|
|
|
|
v850)
|
|
|
|
machine_dir=v850
|
2001-01-10 03:30:13 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 "
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
v850e)
|
|
|
|
machine_dir=v850
|
2003-08-01 00:21:20 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED "
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
w65*)
|
|
|
|
machine_dir=w65
|
|
|
|
;;
|
2001-12-23 06:47:58 +08:00
|
|
|
xstormy16)
|
|
|
|
machine_dir=xstormy16
|
2002-02-02 02:00:41 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED"
|
2004-07-07 16:15:26 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
|
2001-12-23 06:47:58 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
z8k)
|
|
|
|
machine_dir=z8k
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo '***' "Newlib does not support CPU ${host_cpu}" 1>&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-05-09 04:35:16 +08:00
|
|
|
# Disable thread support if requested.
|
|
|
|
|
|
|
|
if [ "${newlib_multithread}" = "no" ] ; then
|
|
|
|
newlib_cflags="${newlib_cflags} -D__SINGLE_THREAD__"
|
|
|
|
fi
|
|
|
|
|
2003-02-08 12:30:58 +08:00
|
|
|
# Disable syscall support if requested.
|
|
|
|
|
|
|
|
if [ "${newlib_may_supply_syscalls}" = "no" ] ; then
|
|
|
|
newlib_cflags="${newlib_cflags} -D__NO_SYSCALLS__"
|
|
|
|
fi
|
|
|
|
|
2002-09-12 02:36:55 +08:00
|
|
|
# Enable multibyte support if requested or it is defaulted
|
|
|
|
# for target.
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2002-09-12 02:36:55 +08:00
|
|
|
if [ "x${newlib_mb}" = "x" ]; then
|
|
|
|
case "${host}" in
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86-pc-linux-*|*-*-cygwin*)
|
2002-09-12 02:36:55 +08:00
|
|
|
newlib_mb=yes
|
2002-09-21 01:11:29 +08:00
|
|
|
;;
|
2002-09-12 02:36:55 +08:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2002-02-28 07:56:24 +08:00
|
|
|
# Disable printf/scanf floating-point support if requested.
|
|
|
|
|
|
|
|
if [ "${newlib_io_float}" = "no" ] ; then
|
|
|
|
newlib_cflags="${newlib_cflags} -DNO_FLOATING_POINT"
|
|
|
|
fi
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
# Verify if shared newlib support is allowed and set appropriate variables
|
|
|
|
# We don't want to use libtool for platforms that we are not going to
|
|
|
|
# support shared libraries. This is because it adds executable tests which
|
|
|
|
# we don't want for most embedded platforms.
|
|
|
|
case "${host}" in
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86-pc-linux-*)
|
2001-12-14 07:50:11 +08:00
|
|
|
use_libtool=yes
|
2002-04-04 06:46:21 +08:00
|
|
|
have_sys_mach_dir=yes
|
2002-07-18 07:25:44 +08:00
|
|
|
stdio64_dir=stdio64
|
2001-12-14 07:50:11 +08:00
|
|
|
oext=lo
|
|
|
|
aext=la ;;
|
|
|
|
*) ;; #shared library not supported for ${host}
|
|
|
|
esac
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
# Get the source directories to use for the host. unix_dir is set
|
|
|
|
# to unix to get some standard Unix routines. posix_dir is set to get some
|
|
|
|
# standard Posix routines. sys_dir should supply system dependent routines
|
|
|
|
# including crt0.
|
|
|
|
# THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
|
|
|
|
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin*)
|
|
|
|
posix_dir=posix
|
2003-03-08 04:41:49 +08:00
|
|
|
stdio64_dir=stdio64
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
*-*-netware*)
|
|
|
|
signal_dir=
|
|
|
|
sys_dir=netware
|
|
|
|
;;
|
|
|
|
*-*-rtems*) # generic RTEMS support
|
|
|
|
sys_dir=rtems
|
|
|
|
# RTEMS POSIX support is all inside RTEMS
|
|
|
|
;;
|
|
|
|
a29k-*-*)
|
|
|
|
sys_dir=a29khif
|
|
|
|
signal_dir=
|
|
|
|
;;
|
|
|
|
arc-*-*)
|
|
|
|
sys_dir=arc
|
|
|
|
;;
|
|
|
|
arm-*-*)
|
2004-06-10 03:05:09 +08:00
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
sys_dir=arm
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
2004-10-06 03:44:24 +08:00
|
|
|
crx*)
|
|
|
|
sys_dir=
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
d10v*)
|
|
|
|
sys_dir=d10v
|
|
|
|
;;
|
|
|
|
d30v*)
|
|
|
|
sys_dir=
|
|
|
|
;;
|
2003-02-21 03:14:12 +08:00
|
|
|
ep9312-*-*)
|
2004-06-10 03:05:09 +08:00
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
sys_dir=arm
|
|
|
|
fi
|
2003-02-21 03:14:12 +08:00
|
|
|
;;
|
2004-06-10 03:05:09 +08:00
|
|
|
frv*)
|
|
|
|
sys_dir=
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
h8300-*-hms*)
|
|
|
|
sys_dir=h8300hms
|
|
|
|
;;
|
2001-08-29 21:26:32 +08:00
|
|
|
h8300-*-elf*)
|
|
|
|
sys_dir=h8300hms
|
|
|
|
;;
|
2002-05-22 02:20:18 +08:00
|
|
|
h8300-*-coff*)
|
|
|
|
sys_dir=h8300hms
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
h8300-*-xray*)
|
|
|
|
sys_dir=h8300xray
|
|
|
|
;;
|
|
|
|
h8500-*-hms*)
|
|
|
|
sys_dir=h8500hms
|
|
|
|
;;
|
2001-08-29 21:26:32 +08:00
|
|
|
h8500-*-elf*)
|
|
|
|
sys_dir=h8500hms
|
|
|
|
;;
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86-*-sco*)
|
2000-02-18 03:39:52 +08:00
|
|
|
sys_dir=sysvi386
|
|
|
|
unix_dir=unix
|
|
|
|
;;
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86-pc-linux-*)
|
2000-12-09 09:20:32 +08:00
|
|
|
sys_dir=linux
|
|
|
|
unix_dir=unix
|
|
|
|
posix_dir=posix
|
2002-04-05 06:41:11 +08:00
|
|
|
crt1=crt1.o
|
|
|
|
crt1_dir=libc/sys/${sys_dir}
|
2000-12-09 09:20:32 +08:00
|
|
|
gcc_dir=`gcc -print-search-dirs | awk '/^install:/{print $2}'`
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_double="yes"
|
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
default_newlib_io_pos_args="yes"
|
2000-12-09 09:20:32 +08:00
|
|
|
#newlib_cflags="${newlib_cflags} -Werror" # DEBUGGING ONLY;BREAKS BUILD
|
|
|
|
newlib_cflags="${newlib_cflags} -Wall"
|
|
|
|
newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS"
|
2003-11-08 07:47:05 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
|
2001-12-14 07:50:11 +08:00
|
|
|
# --- Required when building a shared library ------------------------
|
2000-12-09 09:20:32 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION"
|
|
|
|
# --- The three lines below are optional ------------------------------
|
|
|
|
##newlib_cflags="${newlib_cflags} -nostdinc"
|
|
|
|
##newlib_cflags="${newlib_cflags} -I`newlib-flags --kernel-dir`/include"
|
|
|
|
##newlib_cflags="${newlib_cflags} -idirafter ${gcc_dir}include"
|
|
|
|
;;
|
2002-08-23 09:56:05 +08:00
|
|
|
|
2002-07-24 23:44:24 +08:00
|
|
|
m68hc11-*-*|m6811-*-*|m6812-*-*|m68hc12-*-*)
|
|
|
|
;;
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
m68k-sun-sunos*)
|
|
|
|
unix_dir=unix
|
|
|
|
;;
|
|
|
|
m8*-bug-*)
|
|
|
|
sys_dir=m88kbug
|
|
|
|
;;
|
|
|
|
mips*-dec-*)
|
|
|
|
sys_dir=decstation
|
|
|
|
;;
|
2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/include/machine/ieeefp.h: Add support for mmix target.
* libc/include/machine/setjmp.h: Ditto.
* configure.host: Ditto.
* libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
* libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
libc/sys/mmixware/aclocal.m4: Generate.
2001-11-13 05:04:41 +08:00
|
|
|
mmix-knuth-mmixware)
|
|
|
|
sys_dir=mmixware
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
powerpcle-*-pe)
|
|
|
|
posix_dir=posix
|
|
|
|
;;
|
|
|
|
sh*-*)
|
|
|
|
sys_dir=sh
|
|
|
|
;;
|
|
|
|
sparc-sun-sunos*)
|
|
|
|
sys_dir=sun4
|
|
|
|
unix_dir=unix
|
|
|
|
;;
|
|
|
|
sparc64*)
|
|
|
|
sys_dir=sparc64
|
|
|
|
unix_dir=unix
|
|
|
|
;;
|
|
|
|
strongarm-*-*)
|
2004-06-10 03:05:09 +08:00
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
sys_dir=arm
|
|
|
|
fi
|
2000-11-30 09:57:27 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
thumb-*-*)
|
2004-06-10 03:05:09 +08:00
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
sys_dir=arm
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
tic80*)
|
|
|
|
sys_dir=tic80
|
|
|
|
;;
|
|
|
|
v70-nec-*)
|
|
|
|
sys_dir=sysvnecv70
|
|
|
|
;;
|
|
|
|
v810-*-*)
|
|
|
|
sys_dir=sysnec810
|
|
|
|
;;
|
|
|
|
v850-*-*)
|
|
|
|
sys_dir=sysnecv850
|
|
|
|
;;
|
|
|
|
v850e-*-*)
|
|
|
|
sys_dir=sysnecv850
|
|
|
|
;;
|
|
|
|
v850ea-*-*)
|
|
|
|
sys_dir=sysnecv850
|
|
|
|
;;
|
|
|
|
w65-*-*)
|
|
|
|
sys_dir=w65
|
|
|
|
;;
|
2004-06-10 03:05:09 +08:00
|
|
|
xscale-*-*)
|
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
sys_dir=arm
|
|
|
|
fi
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
z8k-*-coff)
|
|
|
|
sys_dir=z8ksim
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Host specific flag settings -- usually for features that are not
|
|
|
|
# general enough or broad enough to be handled above.
|
|
|
|
# THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
|
|
|
|
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin*)
|
2003-07-26 00:06:01 +08:00
|
|
|
test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${srcdir}/../winsup/cygwin; pwd`
|
|
|
|
export cygwin_srcdir
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
default_newlib_io_long_double="yes"
|
|
|
|
default_newlib_io_pos_args="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_FCNTL -DMALLOC_PROVIDED -I${cygwin_srcdir}/include"
|
2000-02-18 03:39:52 +08:00
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
# RTEMS supplies its own versions of some routines:
|
|
|
|
# malloc() (reentrant version)
|
|
|
|
# exit() RTEMS has a "global" reent to flush
|
|
|
|
# signal()/raise() RTEMS has its own including pthread signals
|
|
|
|
# _XYZ_r() RTEMS has its own reentrant routines
|
|
|
|
#
|
|
|
|
# NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
|
|
|
|
*-*-rtems*)
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DHAVE_FCNTL"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
# VxWorks supplies its own version of malloc, and the newlib one
|
|
|
|
# doesn't work because VxWorks does not have sbrk.
|
|
|
|
*-wrs-vxworks*)
|
2001-02-22 07:11:06 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -DHAVE_FCNTL"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
# UDI doesn't have exec, so system() should fail the right way
|
|
|
|
a29k-amd-udi)
|
|
|
|
newlib_cflags="${newlib_cflags} -DNO_EXEC"
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
arc-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
arm-*-pe)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
|
|
|
;;
|
|
|
|
arm-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
2004-06-10 03:05:09 +08:00
|
|
|
# If newlib is supplying syscalls, select which debug protocol is being used.
|
2000-02-18 03:39:52 +08:00
|
|
|
# ARM_RDP_MONITOR selects the Demon monitor.
|
|
|
|
# ARM_RDI_MONITOR selects the Angel monitor.
|
|
|
|
# If neither are defined, then hard coded defaults will be used
|
|
|
|
# to create the program's environment.
|
2004-06-10 03:05:09 +08:00
|
|
|
# If --disable-newlib-supplied-syscalls is specified, then the end-user
|
|
|
|
# may specify the protocol via gcc spec files supplied by libgloss.
|
2000-02-18 03:39:52 +08:00
|
|
|
# See also thumb below.
|
2004-06-10 03:05:09 +08:00
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
# newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
|
|
|
|
newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
2005-03-23 07:45:43 +08:00
|
|
|
arc*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED"
|
|
|
|
;;
|
2000-06-28 03:51:33 +08:00
|
|
|
avr*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
|
|
|
|
;;
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.host: Add support for cris-*-* and crisv32-*-*.
* libc/include/machine/ieeefp.h: Ditto.
* libc/include/machine/setjmp.h: Ditto.
* libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
files.
2005-01-28 07:54:46 +08:00
|
|
|
cris-*-* | crisv32-*-*)
|
2005-03-17 10:31:57 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_GETTIMEOFDAY -D_USE_WRITE -DCOMPACT_CTYPE"
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.host: Add support for cris-*-* and crisv32-*-*.
* libc/include/machine/ieeefp.h: Ditto.
* libc/include/machine/setjmp.h: Ditto.
* libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
files.
2005-01-28 07:54:46 +08:00
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
2004-10-06 03:44:24 +08:00
|
|
|
crx-*-*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DMISSING_SYSCALL_NAMES"
|
|
|
|
syscall_dir=
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
d10v*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DSMALL_MEMORY"
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
d30v*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_MESSAGE -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
|
|
|
|
syscall_dir=
|
|
|
|
;;
|
2003-02-21 03:14:12 +08:00
|
|
|
ep9312-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
2004-06-10 03:05:09 +08:00
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
|
|
|
|
fi
|
2003-02-21 03:14:12 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
fr30-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
2003-02-21 03:14:12 +08:00
|
|
|
frv-*-*)
|
|
|
|
syscall_dir=syscalls
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
2003-02-21 03:14:12 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
h8300*-*-*)
|
|
|
|
syscall_dir=syscalls
|
2004-07-17 05:40:22 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
2000-02-18 03:39:52 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
|
2003-03-19 04:38:04 +08:00
|
|
|
# Simulator only extensions for H8300.
|
|
|
|
# Uncomment the next line to enable them.
|
|
|
|
# newlib_cflags="${newlib_cflags} -D__SIMULATOR__"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
h8500-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
|
|
|
|
;;
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86-*-sco*)
|
2001-02-22 07:11:06 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED -DHAVE_FCNTL"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
2003-05-31 05:47:40 +08:00
|
|
|
i[34567]86-*-netware*)
|
2001-02-22 07:11:06 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DNO_EXEC -DABORT_PROVIDED -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DHAVE_FCNTL"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
2003-06-10 23:32:27 +08:00
|
|
|
iq2000*)
|
2003-06-21 08:11:40 +08:00
|
|
|
syscall_dir=syscalls
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
2003-06-21 08:11:40 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
m32r-*-*)
|
|
|
|
# Pass -msdata=sdata so _impure_ptr goes in .sdata.
|
|
|
|
# We don't generate sda relocs however for upward compatibility.
|
|
|
|
# FIXME: This is necessary because the default multilib doesn't
|
|
|
|
# use --print-multi-lib.
|
|
|
|
newlib_cflags="${newlib_cflags} -msdata=sdata"
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
2002-07-24 23:44:24 +08:00
|
|
|
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
|
2002-08-23 09:56:05 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DNO_EXEC -DABORT_PROVIDED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
mcore-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
2003-01-08 20:51:23 +08:00
|
|
|
mips64vr*-*-*)
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
2003-01-08 20:51:23 +08:00
|
|
|
;;
|
2004-07-07 07:32:08 +08:00
|
|
|
mips*-*-elf*)
|
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
|
|
|
;;
|
2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/include/machine/ieeefp.h: Add support for mmix target.
* libc/include/machine/setjmp.h: Ditto.
* configure.host: Ditto.
* libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
* libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
libc/sys/mmixware/aclocal.m4: Generate.
2001-11-13 05:04:41 +08:00
|
|
|
mmix-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
# We need every symbol 32-bit aligned, so the invalid
|
|
|
|
# construct with attribute ((alias ("_ctype_b+127"))) breaks.
|
|
|
|
newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
mn10?00-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
2002-04-20 03:16:22 +08:00
|
|
|
powerpc*-*-eabialtivec*)
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
2002-04-20 03:16:22 +08:00
|
|
|
;;
|
2002-08-17 13:57:20 +08:00
|
|
|
powerpc*-*-eabispe*)
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
2002-08-17 13:57:20 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
powerpc*-*-eabi* | \
|
|
|
|
powerpc*-*-elf* | \
|
|
|
|
powerpc*-*-linux* | \
|
|
|
|
powerpc*-*-rtem* | \
|
|
|
|
powerpc*-*-sysv* | \
|
|
|
|
powerpc*-*-solaris*)
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES"
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
powerpcle-*-pe)
|
2001-02-22 07:11:06 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL"
|
2000-02-18 03:39:52 +08:00
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
sh*-*-*)
|
2004-05-26 08:19:14 +08:00
|
|
|
default_newlib_io_long_long="yes"
|
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
|
2000-02-18 03:39:52 +08:00
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
sparc-sun-sunos*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED"
|
|
|
|
;;
|
|
|
|
sparc64-*-*)
|
2001-02-22 07:11:06 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_BLKSIZE -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL"
|
2000-02-18 03:39:52 +08:00
|
|
|
# This either belongs elsewhere or nowhere. But I need *something*,
|
|
|
|
# so for now it's here ...
|
|
|
|
case "${host_os}" in
|
|
|
|
aoutv8 | *32p)
|
|
|
|
newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=32" ;;
|
|
|
|
*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=64" ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
strongarm-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
2000-11-30 09:57:27 +08:00
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
thumb-*-pe)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
|
|
|
# Don't use the debugging protocols just yet.
|
|
|
|
;;
|
|
|
|
thumb-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
2004-06-10 03:05:09 +08:00
|
|
|
# If newlib is supplying syscalls, select which debug protocol is being used.
|
2000-02-18 03:39:52 +08:00
|
|
|
# ARM_RDP_MONITOR selects the Demon monitor.
|
|
|
|
# ARM_RDI_MONITOR selects the Angel monitor.
|
|
|
|
# If neither are defined, then hard coded defaults will be used
|
|
|
|
# to create the program's environment.
|
2004-06-10 03:05:09 +08:00
|
|
|
# If --disable-newlib-supplied-syscalls is specified, then the end-user
|
|
|
|
# may specify the protocol via gcc spec files supplied by libgloss.
|
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
# newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
|
|
|
|
newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
;;
|
|
|
|
tic80*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
v850-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
v850e-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
v850ea-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
w65-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
|
|
|
|
;;
|
2004-06-10 03:05:09 +08:00
|
|
|
xscale-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
|
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_SYSTEM -DHAVE_RENAME"
|
|
|
|
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
|
|
|
|
newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
|
|
|
|
fi
|
|
|
|
;;
|
2001-12-23 06:47:58 +08:00
|
|
|
xstormy16-*-*)
|
2002-05-01 02:23:40 +08:00
|
|
|
newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
2000-02-18 03:39:52 +08:00
|
|
|
z8k-*-*)
|
|
|
|
syscall_dir=syscalls
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
|
|
|
syscall_dir=
|
|
|
|
;;
|
|
|
|
esac
|
2004-05-26 08:19:14 +08:00
|
|
|
|
|
|
|
# Use defaults for certain settings if not specified by user
|
|
|
|
|
|
|
|
# Enable long long support in I/O routines if requested.
|
|
|
|
if [ "x${newlib_io_long_long}" = "x" ]; then
|
|
|
|
if [ ${default_newlib_io_long_long} = "yes" ]; then
|
|
|
|
newlib_io_long_long="yes";
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Enable long double support in I/O routines if requested.
|
|
|
|
if [ "x${newlib_io_long_double}" = "x" ]; then
|
|
|
|
if [ ${default_newlib_io_long_double} = "yes" ]; then
|
|
|
|
newlib_io_long_double="yes";
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Enable printf positional argument support if requested.
|
|
|
|
if [ "x${newlib_io_pos_args}" = "x" ]; then
|
|
|
|
if [ ${default_newlib_io_pos_args} = "yes" ]; then
|
|
|
|
newlib_io_pos_args="yes";
|
|
|
|
fi
|
|
|
|
fi
|