Add linux-newlib to config [PATCH]
Shaun Jackman
sjackman@gmail.com
Wed Nov 16 08:10:00 GMT 2005
This patch adds support for a linux-newlib toolchain to config. This
toolchain is comparable in purpose to linux-gnu and linux-uclibc.
Thanks,
Shaun
2005-11-15 Shaun Jackman <sjackman@gmail.com>
* config.sub: Add the KERNEL-OS linux-newlib*.
* configure.in: Add the target i[3456789]86-*-linux*-newlib*.
Index: config.sub
===================================================================
--- config.sub (revision 107041)
+++ config.sub (working copy)
@@ -119,7 +119,8 @@
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* |
uclinux-uclibc* | uclinux-gnu* | \
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | \
+ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* |
os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
@@ -1181,7 +1182,8 @@
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* |
-mpeix* | -udk* \
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
Index: configure.in
===================================================================
--- configure.in (revision 107041)
+++ configure.in (working copy)
@@ -586,6 +586,10 @@
i[[3456789]]86-*-coff | i[[3456789]]86-*-elf)
noconfigdirs="$noconfigdirs ${libgcj}"
;;
+ i[[3456789]]86-*-linux*-newlib*)
+ # always build newlib.
+ skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
+ ;;
i[[3456789]]86-*-linux*)
# The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
# not build java stuff by default.
More information about the Newlib
mailing list