diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-08-31 20:39:43 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-08-31 20:39:43 +0000 |
commit | 45c8bb8f8cd221a0f4ad3c920a315eacea4fca94 (patch) | |
tree | 76f3f6f7754d99b4a692d336d0f1f4ac24c8d614 /newlib/configure.host | |
parent | 53fabb7b243f1f1f357d90978c142d75b7f6b711 (diff) | |
download | cygnal-45c8bb8f8cd221a0f4ad3c920a315eacea4fca94.tar.gz cygnal-45c8bb8f8cd221a0f4ad3c920a315eacea4fca94.tar.bz2 cygnal-45c8bb8f8cd221a0f4ad3c920a315eacea4fca94.zip |
2005-08-31 Paul Brook <paul@codesourcery.com>
* configure.host: Set have_crt0 to no for Arm targts when not
providing syscalls. Set sys_dir=arm unconditionally.
Default have_crt0 based on sys_dir.
* configure.in: Use have_crt0.
* libc/configure.in: Ditto.
* libc/sys/configure.in: Ditto.
* configure: Regenerate.
* libc/configure: Regenerate.
* libc/sys/configure: Regenerate.
* libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
Only build other files when providing syscalls.
* libc/sys/arm/Makefile.in: Regenerate.
* libc/sys/arm/aeabi_atexit.c: New file.
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index 095007a4e..91dd1e0a3 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -42,6 +42,8 @@ # oext object file extension - needed for libtool support # crt1 name of crt1 object if one is provided # crt1_dir directory where crt1 object is found +# have_crt0 "yes"/"no" if crt0 is/isn't provided. +# "" if crt0 is provided when sys_dir is set newlib_cflags= libm_machine_dir= @@ -55,6 +57,7 @@ unix_dir= mach_add_setjmp= crt1= crt1_dir= +have_crt0= use_libtool=no have_sys_mach_dir=no default_newlib_io_long_long=no @@ -318,8 +321,9 @@ case "${host}" in sys_dir=arc ;; arm-*-*) - if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then - sys_dir=arm + sys_dir=arm + if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then + have_crt0="no" fi ;; crx*) @@ -332,8 +336,9 @@ case "${host}" in sys_dir= ;; ep9312-*-*) - if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then - sys_dir=arm + sys_dir=arm + if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then + have_crt0="no" fi ;; frv*) @@ -413,13 +418,15 @@ case "${host}" in unix_dir=unix ;; strongarm-*-*) - if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then - sys_dir=arm + sys_dir=arm + if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then + have_crt0="no" fi ;; thumb-*-*) - if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then - sys_dir=arm + sys_dir=arm + if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then + have_crt0="no" fi ;; tic80*) @@ -444,8 +451,9 @@ case "${host}" in sys_dir=w65 ;; xscale-*-*) - if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then - sys_dir=arm + sys_dir=arm + if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then + have_crt0="no" fi ;; z8k-*-coff) @@ -725,3 +733,7 @@ if [ "x${newlib_io_pos_args}" = "x" ]; then newlib_io_pos_args="yes"; fi fi + +if test -z "${have_crt0}" && test -n "${sys_dir}"; then + have_crt0="yes" +fi |