Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-07 12:57:29 +0300
committerMike Frysinger <vapier@gentoo.org>2022-02-10 04:23:12 +0300
commit462d6942f6be6addbf0a977af366b421810738bb (patch)
treeecf5203b15f077233a9fd4c688342576d998a6be /newlib/configure.host
parent492e5fe8b0863e15ffd5a269e42b60fabfc5f5db (diff)
newlib: drop i?86-pc-linux-* target support
This was added 20+ years ago. It seems to have very few (or no users) as it only works on 32-bit x86 GNU/Linux (i.e. glibc) systems, and even then only with old versions of glibc. It hasn't compiled in at least 5 years, but most likely been broken for more like 15 years -- it relies on internal glibc APIs (like linuxthreads), and that code has changed and been deleted significantly since. This single target ends up dragging in a lot of non-trivial code that is hard to keep working, and currently impossible to verify -- the libtool and iconvdata and sys/linux/ code isn't used by anything else, but ends up touching just about every build file in the tree. Punt the target so we can start stripping out all these unique code paths. This commit by itself just disables the target. We'll start deleting the individual unused pieces in followups.
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host40
1 files changed, 1 insertions, 39 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index 893a698ed..4eae14063 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -406,7 +406,7 @@ fi
if [ "x${newlib_mb}" = "x" ]; then
case "${host}" in
- i[34567]86-pc-linux-*|*-*-cygwin*)
+ *-*-cygwin*)
newlib_mb=yes
;;
esac
@@ -418,21 +418,6 @@ if [ "${newlib_io_float}" = "no" ] ; then
newlib_cflags="${newlib_cflags} -DNO_FLOATING_POINT"
fi
-# 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
- i[34567]86-pc-linux-*)
- use_libtool=yes
- have_sys_mach_dir=yes
- stdio64_dir=stdio64
- oext=lo
- lpfx=
- aext=la ;;
- *) ;; #shared library not supported for ${host}
-esac
-
# 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
@@ -530,29 +515,6 @@ case "${host}" in
sys_dir=sysvi386
unix_dir=unix
;;
- i[34567]86-pc-linux-*)
- sys_dir=linux
- unix_dir=unix
- posix_dir=posix
- crt1=crt1.o
- crt1_dir=libc/sys/${sys_dir}
- gcc_dir=`gcc -print-search-dirs | awk '/^install:/{print $2}'`
- default_newlib_io_c99_formats="yes"
- default_newlib_io_long_double="yes"
- default_newlib_io_long_long="yes"
- default_newlib_io_pos_args="yes"
- #newlib_cflags="${newlib_cflags} -Werror" # DEBUGGING ONLY;BREAKS BUILD
- newlib_cflags="${newlib_cflags} -Wall"
- newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
- newlib_cflags="${newlib_cflags} -DHAVE_GETOPT"
- newlib_cflags="${newlib_cflags} -D_NO_POSIX_SPAWN"
- # --- Required when building a shared library ------------------------
- 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"
- ;;
m68hc11-*-*|m6811-*-*|m6812-*-*|m68hc12-*-*)
;;