From 102861c9a6bf740801e08939a975ab97c9ede26c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 30 May 2003 21:47:40 +0000 Subject: [PATCH] 2003-05-30 Kelley Cook * configure.host: Allow i[34567]86 variant. * configure.in: Likewise. * README: Likewise to the docs. * configure: Regenerated. * Makefile.in: Ditto. --- newlib/ChangeLog | 8 ++++++++ newlib/README | 6 +++--- newlib/configure | 2 +- newlib/configure.host | 14 +++++++------- newlib/configure.in | 2 +- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 06689640a..e470dca65 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,11 @@ +2003-05-30 Kelley Cook + + * configure.host: Allow i[34567]86 variant. + * configure.in: Likewise. + * README: Likewise to the docs. + * configure: Regenerated. + * Makefile.in: Ditto. + 2003-05-28 Jeff Johnston Tom Fitzsimmons diff --git a/newlib/README b/newlib/README index 433c0d789..cbb8e6714 100644 --- a/newlib/README +++ b/newlib/README @@ -275,7 +275,7 @@ Shared newlib ============= newlib uses libtool when it is being compiled natively (with ---target=i[3456]86-pc-linux-gnu) on an i[3456]86-pc-linux-gnu +--target=i[34567]86-pc-linux-gnu) on an i[34567]86-pc-linux-gnu host. This allows newlib to be compiled as a shared library. To configure newlib, do the following from your build directory: @@ -283,12 +283,12 @@ To configure newlib, do the following from your build directory: $(source_dir)/src/configure --with-newlib --prefix=$(install_dir) configure will recognize that host == target == -i[3456]86-pc-linux-gnu, so it will tell newlib to compile itself using +i[34567]86-pc-linux-gnu, so it will tell newlib to compile itself using libtool. By default, libtool will build shared and static versions of newlib. To compile a program against shared newlib, do the following (where -target_install_dir = $(install_dir)/i[3456]86-pc-linux-gnu): +target_install_dir = $(install_dir)/i[34567]86-pc-linux-gnu): gcc -nostdlib $(target_install_dir)/lib/crt0.o progname.c -I $(target_install_dir)/include -L $(target_install_dir)/lib -lc -lm -lgcc diff --git a/newlib/configure b/newlib/configure index 62d0b61ce..599079a97 100755 --- a/newlib/configure +++ b/newlib/configure @@ -3091,7 +3091,7 @@ fi EXTRA_DIRS= case $host in - i345686-pc-linux-*) + i[34567]86-pc-linux-*) configdirs="${configdirs} iconvdata" EXTRA_DIRS=iconvdata ;; diff --git a/newlib/configure.host b/newlib/configure.host index 172baa754..3c6f24b08 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -115,7 +115,7 @@ case "${host_cpu}" in i960) machine_dir=i960 ;; - i[3456]86) + i[34567]86) # Don't use for these since they provide their own setjmp. case ${host} in *-*-sco* | *-*-cygwin*) @@ -242,7 +242,7 @@ fi if [ "x${newlib_mb}" = "x" ]; then case "${host}" in - i[3456]86-pc-linux-*|*-*-cygwin*) + i[34567]86-pc-linux-*|*-*-cygwin*) newlib_mb=yes ;; esac @@ -269,7 +269,7 @@ fi # support shared libraries. This is because it adds executable tests which # we don't want for most embedded platforms. case "${host}" in - i[3456]86-pc-linux-*) + i[34567]86-pc-linux-*) use_libtool=yes have_sys_mach_dir=yes stdio64_dir=stdio64 @@ -334,11 +334,11 @@ case "${host}" in h8500-*-elf*) sys_dir=h8500hms ;; - i[3456]86-*-sco*) + i[34567]86-*-sco*) sys_dir=sysvi386 unix_dir=unix ;; - i[3456]86-pc-linux-*) + i[34567]86-pc-linux-*) sys_dir=linux unix_dir=unix posix_dir=posix @@ -509,10 +509,10 @@ case "${host}" in syscall_dir=syscalls newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY" ;; - i[3456]86-*-sco*) + i[34567]86-*-sco*) newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED -DHAVE_FCNTL" ;; - i[3456]86-*-netware*) + i[34567]86-*-netware*) newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DNO_EXEC -DABORT_PROVIDED -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DHAVE_FCNTL" ;; m32r-*-*) diff --git a/newlib/configure.in b/newlib/configure.in index 34dcb8643..faf4aa2f3 100644 --- a/newlib/configure.in +++ b/newlib/configure.in @@ -52,7 +52,7 @@ AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes) EXTRA_DIRS= case $host in - i[3456]86-pc-linux-*) + i[[34567]]86-pc-linux-*) configdirs="${configdirs} iconvdata" EXTRA_DIRS=iconvdata ;;